Skip to content
Snippets Groups Projects

Fix: url and tags

Merged L. Ellenbeck requested to merge Topic/570-gitVersion into master
1 file
+ 11
4
Compare changes
  • Side-by-side
  • Inline
+ 11
4
@@ -221,7 +221,7 @@ IEnumerable<string> redirectedStandardOutput;
@@ -221,7 +221,7 @@ IEnumerable<string> redirectedStandardOutput;
}
}
}
}
exitCodeWithArgument =
/*exitCodeWithArgument =
StartProcess(
StartProcess(
"git",
"git",
new ProcessSettings {
new ProcessSettings {
@@ -239,7 +239,7 @@ IEnumerable<string> redirectedStandardOutput;
@@ -239,7 +239,7 @@ IEnumerable<string> redirectedStandardOutput;
RedirectStandardOutput = true
RedirectStandardOutput = true
},
},
out redirectedStandardOutput
out redirectedStandardOutput
);
);*/
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
var settings = new HttpSettings
var settings = new HttpSettings
@@ -249,10 +249,17 @@ IEnumerable<string> redirectedStandardOutput;
@@ -249,10 +249,17 @@ IEnumerable<string> redirectedStandardOutput;
{"PRIVATE-TOKEN", gitlabToken},
{"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);
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);
Information(description);
});
});
Task("Build")
Task("Build")
Loading