Skip to content
Snippets Groups Projects
Commit ad9d5869 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!10
parents 10db559e 994b5e71
No related branches found
No related tags found
1 merge request!10Fix: small fix
......@@ -241,12 +241,8 @@ IEnumerable<string> redirectedStandardOutput;
out redirectedStandardOutput
);*/
Information(description);
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
Information(json);
var settings = new HttpSettings
{
Headers = new Dictionary<string, string>
......@@ -256,14 +252,13 @@ IEnumerable<string> redirectedStandardOutput;
};
// 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);
Information(responseBody);
// create release
settings.SetJsonRequestBody(json);
responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
Information(responseBody);
//settings.SetJsonRequestBody(json);
//responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
//Information(responseBody);
});
Task("Build")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment