Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
O
Organization Parser
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
Organization Parser
Commits
9d3550c2
This project is archived. Its data is
read-only
.
Commit
9d3550c2
authored
Jul 23, 2020
by
L. Ellenbeck
Browse files
Options
Downloads
Patches
Plain Diff
WIP: removed comment code coscine/issues#888
parent
a43bcd12
No related branches found
No related tags found
1 merge request
!1
Topic/888 automated import
Pipeline
#312800
passed
Jul 27, 2020
Status:
Stage: test
Status:
Stage: release
Status:
Stage: schedule
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.cake
+1
-19
1 addition, 19 deletions
build.cake
with
1 addition
and
19 deletions
build.cake
+
1
−
19
View file @
9d3550c2
...
...
@@ -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.");
}
...
...
...
...
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
sign in
to comment