Skip to content
Snippets Groups Projects

Fix: small fix

Merged L. Ellenbeck requested to merge Topic/570-gitVersion into master
1 file
+ 3
8
Compare changes
  • Side-by-side
  • Inline
+ 3
8
@@ -241,12 +241,8 @@ IEnumerable<string> redirectedStandardOutput;
@@ -241,12 +241,8 @@ IEnumerable<string> redirectedStandardOutput;
out redirectedStandardOutput
out redirectedStandardOutput
);*/
);*/
Information(description);
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
Information(json);
var settings = new HttpSettings
var settings = new HttpSettings
{
{
Headers = new Dictionary<string, string>
Headers = new Dictionary<string, string>
@@ -256,14 +252,13 @@ IEnumerable<string> redirectedStandardOutput;
@@ -256,14 +252,13 @@ IEnumerable<string> redirectedStandardOutput;
};
};
// create tag
// create tag
Information($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master&release_description={description}");
var responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master&release_description={description}", settings);
var responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master&release_description={description}", settings);
Information(responseBody);
Information(responseBody);
// create release
// create release
settings.SetJsonRequestBody(json);
//settings.SetJsonRequestBody(json);
responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
//responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
Information(responseBody);
//Information(responseBody);
});
});
Task("Build")
Task("Build")
Loading