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

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

Fix: url and tags

See merge request coscine/cs/exampleproject!8
parents c37e968b deaf9062
No related branches found
No related tags found
1 merge request!8Fix: url and tags
......@@ -221,7 +221,7 @@ IEnumerable<string> redirectedStandardOutput;
}
}
exitCodeWithArgument =
/*exitCodeWithArgument =
StartProcess(
"git",
new ProcessSettings {
......@@ -239,7 +239,7 @@ IEnumerable<string> redirectedStandardOutput;
RedirectStandardOutput = true
},
out redirectedStandardOutput
);
);*/
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
var settings = new HttpSettings
......@@ -249,10 +249,17 @@ IEnumerable<string> redirectedStandardOutput;
{"PRIVATE-TOKEN", gitlabToken},
}
};
// create tag
Information($"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);
// create release
settings.SetJsonRequestBody(json);
var 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(description);
});
Task("Build")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment