Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ExampleProject
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
scripts
ExampleProject
Commits
10db559e
Commit
10db559e
authored
Jan 22, 2020
by
L. Ellenbeck
Browse files
Options
Downloads
Plain Diff
Merge branch 'Topic/570-gitVersion' into 'master'
Fix: small fix See merge request coscine/cs/exampleproject!9
parents
7912977f
c69f1256
Branches
Branches containing commit
Tags
v1.5.2
Tags containing commit
1 merge request
!9
Fix: small fix
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.cake
+6
-2
6 additions, 2 deletions
build.cake
with
6 additions
and
2 deletions
build.cake
+
6
−
2
View file @
10db559e
...
...
@@ -241,7 +241,12 @@ IEnumerable<string> redirectedStandardOutput;
out redirectedStandardOutput
);*/
Information(description);
var json = $"{{\"name\": \"v{semanticVersion}\", \"tag_name\": \"v{semanticVersion}\" \"description\": \"{description}\"}}";
Information(json);
var settings = new HttpSettings
{
Headers = new Dictionary<string, string>
...
...
@@ -251,7 +256,7 @@ IEnumerable<string> redirectedStandardOutput;
};
// create tag
Information($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master&release_description={description}"
, settings
);
Information($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/repository/tags?tag_name=v{semanticVersion}&ref=master&release_description={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(responseBody);
...
...
@@ -259,7 +264,6 @@ IEnumerable<string> redirectedStandardOutput;
settings.SetJsonRequestBody(json);
responseBody = HttpPost($"https://git.rwth-aachen.de/api/v4/projects/{gitlabProjectId}/releases", settings);
Information(responseBody);
Information(description);
});
Task("Build")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment