From 09760185a618455c2a9e88111de5a39e335f13ca Mon Sep 17 00:00:00 2001
From: "L. Ellenbeck" <ellenbeck@itc.rwth-aachen.de>
Date: Wed, 22 Jan 2020 14:43:57 +0100
Subject: [PATCH] Fix: fix

---
 build.cake | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/build.cake b/build.cake
index 6f78641..da9e06a 100644
--- a/build.cake
+++ b/build.cake
@@ -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},
+				{"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")
-- 
GitLab