Skip to content
Snippets Groups Projects
Commit f897c804 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!11
parents ad9d5869 c9bc7051
No related branches found
No related tags found
1 merge request!11Fix: small fix
...@@ -241,24 +241,26 @@ IEnumerable<string> redirectedStandardOutput; ...@@ -241,24 +241,26 @@ IEnumerable<string> redirectedStandardOutput;
out redirectedStandardOutput out redirectedStandardOutput
);*/ );*/
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
var settings = new HttpSettings var settings = new HttpSettings
{ {
Headers = new Dictionary<string, string> Headers = new Dictionary<string, string>
{ {
{"PRIVATE-TOKEN", gitlabToken}, {"PRIVATE-TOKEN", gitlabToken},
} },
EnsureSuccessStatusCode = true,
}; };
// create tag // create tag
settings.SetJsonRequestBody("{}");
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); var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
//responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings); settings.SetJsonRequestBody(json);
//Information(responseBody); responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
Information(responseBody);
}); });
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