Skip to main content
Sign in
Snippets Groups Projects
Commit 9d3550c2 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

WIP: removed comment code coscine/issues#888

parent a43bcd12
No related branches found
No related tags found
1 merge request!1Topic/888 automated import
Pipeline #312800 passed
......@@ -369,24 +369,6 @@ Task("PushToGit")
Information("Response: {0}", response.Content.ReadAsStringAsync().Result);
response.EnsureSuccessStatusCode();
}
/*using (var httpClient = new HttpClient())
{
using (var request = new HttpRequestMessage(new HttpMethod("PUT"), "https://git.rwth-aachen.de/api/v4/projects/47542/repository/files/index.ttl"))
{
var content = FileReadText($"{artifactsDir}/index.ttl");
httpClient.DefaultRequestHeaders.Add("PRIVATE-TOKEN", gitlabToken);
request.Content = new StringContent("{\"branch\": \"TestBranch\", \"" + gitlabMail +"\": \"" + gitlabMail + "\", \"" + gitlabName + "\": \"" + gitlabName + "\", \n \"content\": \"" + "content" + "\", \"commit_message\": \"update file\"}");
request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
var response = httpClient.PutAsync("https://git.rwth-aachen.de/api/v4/projects/47542/repository/files/index.ttl", new StringContent("{\"branch\": \"TestBranch\", \"" + gitlabMail +"\": \"" + gitlabMail + "\", \"" + gitlabName + "\": \"" + gitlabName + "\", \n \"content\": \"" + "content" + "\", \"commit_message\": \"update file\"}")).Result;
Information("Request content: {0}", "{\"branch\": \"TestBranch\", \"" + gitlabMail +"\": \"" + gitlabMail + "\", \"" + gitlabName + "\": \"" + gitlabName + "\", \n \"content\": \"" + "\", \"commit_message\": \"update file\"}");
Information("IsSuccess: {0}", response.IsSuccessStatusCode);
Information("StatusCode: {0}", response.StatusCode);
Information("Response: {0}", response.Content.ReadAsStringAsync().Result);
}
}*/
} else {
Information("No index ttl found. Nothing to do.");
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment