Skip to content
Snippets Groups Projects
Commit 10db559e authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Merge branch 'Topic/570-gitVersion' into 'master'

Fix: small fix

See merge request coscine/cs/exampleproject!9
parents 7912977f c69f1256
No related branches found
No related tags found
1 merge request!9Fix: small fix
...@@ -241,7 +241,12 @@ IEnumerable<string> redirectedStandardOutput; ...@@ -241,7 +241,12 @@ 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>
...@@ -251,7 +256,7 @@ IEnumerable<string> redirectedStandardOutput; ...@@ -251,7 +256,7 @@ 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}", settings); 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);
...@@ -259,7 +264,6 @@ IEnumerable<string> redirectedStandardOutput; ...@@ -259,7 +264,6 @@ IEnumerable<string> redirectedStandardOutput;
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);
Information(description);
}); });
Task("Build") Task("Build")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment