Skip to content

Instantly share code, notes, and snippets.

@stefanandres
Created October 26, 2017 07:23
Show Gist options
  • Select an option

  • Save stefanandres/698d4d2be0bc870efa7d6e534e60f874 to your computer and use it in GitHub Desktop.

Select an option

Save stefanandres/698d4d2be0bc870efa7d6e534e60f874 to your computer and use it in GitHub Desktop.
WebHook called with url: /project/foobar-hieradata
Oct 26, 2017 9:13:04 AM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction
Push: {
"object_kind" : "push",
"event_name" : "push",
"before" : "b6b959b02d8643f4ae30e1297e4af823e73c2d87",
"after" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"ref" : "refs/heads/master",
"checkout_sha" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"message" : null,
"user_id" : 47,
"user_name" : "Arne foo",
"user_username" : "a.foo",
"user_email" : "a.foo@foobar.de",
"user_avatar" : "/uploads/-/system/user/avatar/47/Foto_am_25.08.14_um_11.06.jpg",
"project_id" : 3306,
"project" : {
"name" : "foobar-hieradata",
"description" : "This repository contains hiera configuration for customers.",
"web_url" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata",
"avatar_url" : null,
"git_ssh_url" : "git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git",
"git_http_url" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata.git",
"namespace" : "puppet-manifests",
"visibility_level" : 0,
"path_with_namespace" : "puppet-manifests/foobar-hieradata",
"default_branch" : "master",
"ci_config_path" : null,
"homepage" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata",
"url" : "git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git",
"ssh_url" : "git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git",
"http_url" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata.git"
},
"commits" : [ {
"id" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"message" : "#88418",
"timestamp" : "2017-10-26T09:13:02+02:00",
"url" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata/commit/6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"author" : {
"name" : "myusername",
"email" : "myusername@jumphost.bki1.foobar.de"
},
"added" : [ ],
"modified" : [ "fashionette/fashionette2016/production/nodes/fashionette.fashionette2016.dbm01.yaml" ],
"removed" : [ ]
} ],
"total_commits_count" : 1,
"repository" : {
"name" : "foobar-hieradata",
"url" : "git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git",
"description" : "This repository contains hiera configuration for customers.",
"homepage" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata",
"git_http_url" : "https://gitlab.foobar.de/puppet-manifests/foobar-hieradata.git",
"git_ssh_url" : "git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git",
"visibility_level" : 0
}
}
Oct 26, 2017 9:13:04 AM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction
Notify scmSourceOwner foobar-hieradata about changes for git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git
Oct 26, 2017 9:13:06 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Oct 26, 2017 9:13:06 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Build does not contain build data.
Oct 26, 2017 9:13:22 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Oct 26, 2017 9:13:22 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater addGitLabBranchBuild
Retrieving the gitlab project id from remote url git@gitlab.foobar.de:puppet-manifests/foobar-hieradata.git
Oct 26, 2017 9:13:22 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Call GitLab:
HTTP method: GET
URL: https://gitlab.foobar.de/api/v3/projects/puppet-manifests%2Ffoobar-hieradata/repository/commits/6a6a8edbf8595a33e7bb8c7cc59be41dbe666820
Request headers: [
Accept = [application/json],
PRIVATE-TOKEN = [****FILTERED****]
]
Oct 26, 2017 9:13:25 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.foobar.de/api/v3/projects/puppet-manifests%2Ffoobar-hieradata/repository/commits/6a6a8edbf8595a33e7bb8c7cc59be41dbe666820
Status: 200 OK
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [keep-alive],
Content-Length = [539],
Content-Type = [application/json],
Date = [Thu, 26 Oct 2017 07:13:25 GMT],
Etag = [W/"f384975ae122812571602e5fb9d54696"],
Server = [nginx],
Strict-Transport-Security = [max-age=31536000],
Vary = [Origin],
X-Frame-Options = [SAMEORIGIN],
X-Request-Id = [9c1a9f99-4f3c-4f55-b3af-32df608aaf0c],
X-Runtime = [2.391191]
]
Response body: {
"id" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"short_id" : "6a6a8edb",
"title" : "#88418",
"created_at" : "2017-10-26T09:13:02.000+02:00",
"parent_ids" : [ "b6b959b02d8643f4ae30e1297e4af823e73c2d87" ],
"message" : "#88418",
"author_name" : "myusername",
"author_email" : "myusername@jumphost.bki1.foobar.de",
"authored_date" : "2017-10-26T09:13:02.000+02:00",
"committer_name" : "myusername",
"committer_email" : "myusername@jumphost.bki1.foobar.de",
"committed_date" : "2017-10-26T09:13:02.000+02:00",
"stats" : {
"additions" : 1,
"deletions" : 0,
"total" : 1
},
"status" : null
}
Oct 26, 2017 9:13:25 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Call GitLab:
HTTP method: POST
URL: https://gitlab.foobar.de/api/v3/projects/puppet-manifests%2Ffoobar-hieradata/statuses/6a6a8edbf8595a33e7bb8c7cc59be41dbe666820
Request headers: [
Accept = [application/json],
Content-Type = [application/x-www-form-urlencoded],
PRIVATE-TOKEN = [****FILTERED****]
]
Oct 26, 2017 9:13:25 AM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.foobar.de/api/v3/projects/puppet-manifests%2Ffoobar-hieradata/statuses/6a6a8edbf8595a33e7bb8c7cc59be41dbe666820
Status: 201 Created
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [keep-alive],
Content-Length = [568],
Content-Type = [application/json],
Date = [Thu, 26 Oct 2017 07:13:25 GMT],
Etag = [W/"9aa461f462d44ef66d697f0e66630111"],
Server = [nginx],
Strict-Transport-Security = [max-age=31536000],
Vary = [Origin],
X-Frame-Options = [SAMEORIGIN],
X-Request-Id = [64657a45-3c16-4a77-bc7f-eb0884a93b30],
X-Runtime = [0.323279]
]
Response body: {
"id" : 28673,
"sha" : "6a6a8edbf8595a33e7bb8c7cc59be41dbe666820",
"ref" : "master",
"status" : "success",
"name" : "build",
"target_url" : "https://jenkins1.foobar.de/job/foobar-hieradata/job/master/17927/",
"description" : null,
"created_at" : "2017-10-26T07:13:25.263Z",
"started_at" : null,
"finished_at" : "2017-10-26T09:13:25.297+02:00",
"allow_failure" : false,
"coverage" : null,
"author" : {
"id" : 28,
"name" : "jenkins",
"username" : "jenkins",
"state" : "active",
"avatar_url" : "https://gitlab.foobar.de/uploads/-/system/user/avatar/28/headshot.jpg",
"web_url" : "https://gitlab.foobar.de/jenkins"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment