Skip to content
Snippets Groups Projects

Fix: small fix

Merged L. Ellenbeck requested to merge Topic/570-gitVersion into master
1 file
+ 8
10
Compare changes
  • Side-by-side
  • Inline
+ 8
10
@@ -241,28 +241,26 @@ IEnumerable<string> redirectedStandardOutput;
@@ -241,28 +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
Information(gitlabProjectId);
settings.SetJsonRequestBody("{}");
Information(semanticVersion);
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(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);
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")
Loading