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

Fix: fix

parent 479907b4
Branches Sprint/2021-07
Tags
1 merge request!11Fix: small fix
......@@ -241,28 +241,26 @@ IEnumerable<string> redirectedStandardOutput;
out redirectedStandardOutput
);*/
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
var settings = new HttpSettings
{
Headers = new Dictionary<string, string>
{
{"PRIVATE-TOKEN", gitlabToken},
EnsureSuccessStatusCode = true,
}
};
// create tag
Information(gitlabProjectId);
Information(semanticVersion);
Information(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(test);
settings.SetJsonRequestBody("{}");
var responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master&release_description=abc", settings);
Information(responseBody);
// create release
//settings.SetJsonRequestBody(json);
//responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
//Information(responseBody);
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
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