Skip to content

Instantly share code, notes, and snippets.

@mfrister
Created April 4, 2017 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfrister/4f939434812c75d42ba127b6bed99b82 to your computer and use it in GitHub Desktop.
Save mfrister/4f939434812c75d42ba127b6bed99b82 to your computer and use it in GitHub Desktop.
Jenkins Gitlab Plugin Log - Two pushes within seconds
Apr 03, 2017 4:02:43 PM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/docker_api_foo-features
Apr 03, 2017 4:02:43 PM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction
Push: {
"object_kind" : "push",
"event_name" : "push",
"before" : "0000000000000000000000000000000000000000",
"after" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"ref" : "refs/heads/feature_AF-142",
"checkout_sha" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"message" : null,
"user_id" : 15,
"user_name" : "John Doe",
"user_email" : "john.doe@example.com",
"user_avatar" : "https://gitlab.example.com/uploads/user/avatar/15/orange-smaller.jpeg",
"project_id" : 23,
"project" : {
"name" : "api_foo",
"description" : "",
"web_url" : "https://gitlab.example.com/bar/api_foo",
"avatar_url" : "https://gitlab.example.com/uploads/project/avatar/23/apifoo.png",
"git_ssh_url" : "git@gitlab.example.com:bar/api_foo.git",
"git_http_url" : "https://gitlab.example.com/bar/api_foo.git",
"namespace" : "bar",
"visibility_level" : 0,
"path_with_namespace" : "bar/api_foo",
"default_branch" : "master",
"homepage" : "https://gitlab.example.com/bar/api_foo",
"url" : "git@gitlab.example.com:bar/api_foo.git",
"ssh_url" : "git@gitlab.example.com:bar/api_foo.git",
"http_url" : "https://gitlab.example.com/bar/api_foo.git"
},
"commits" : [ ],
"total_commits_count" : 0,
"repository" : {
"name" : "api_foo",
"url" : "git@gitlab.example.com:bar/api_foo.git",
"description" : "",
"homepage" : "https://gitlab.example.com/bar/api_foo",
"git_http_url" : "https://gitlab.example.com/bar/api_foo.git",
"git_ssh_url" : "git@gitlab.example.com:bar/api_foo.git",
"visibility_level" : 0
}
}
Apr 03, 2017 4:02:43 PM INFO com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler handle
docker_api_foo-features triggered for push.
Apr 03, 2017 4:02:43 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Call GitLab:
HTTP method: POST
URL: https://gitlab.example.com/api/v3/projects/23/statuses/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Request headers: [
Accept = [application/json],
Content-Type = [application/x-www-form-urlencoded],
PRIVATE-TOKEN = [****FILTERED****]
]
Apr 03, 2017 4:02:44 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.example.com/api/v3/projects/23/statuses/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Status: 201 Created
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [Keep-Alive],
Content-Length = [481],
Content-Type = [application/json],
Date = [Mon, 03 Apr 2017 14:02:27 GMT],
Etag = [W/"62709ea1b949bdf601ea1c64a3328e68"],
Keep-Alive = [timeout=15, max=100],
Strict-Transport-Security = [max-age=63072000],
Vary = [Origin],
X-Request-Id = [a5774d62-8f69-4d64-805d-4e0516af820f],
X-Runtime = [0.151075]
]
Response body: {
"id" : 5684,
"sha" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"ref" : "feature_AF-142",
"status" : "pending",
"name" : "jenkins",
"target_url" : "https://jenkins.example.com/job/docker_api_foo-features/821/",
"description" : null,
"created_at" : "2017-04-03T16:02:27.428+02:00",
"started_at" : null,
"finished_at" : null,
"allow_failure" : false,
"coverage" : null,
"author" : {
"name" : "Gitlab-CI",
"username" : "gitlabci",
"id" : 16,
"state" : "active",
"avatar_url" : null,
"web_url" : "https://gitlab.example.com/gitlabci"
}
}
Apr 03, 2017 4:02:44 PM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/docker_api_foo-features
Apr 03, 2017 4:02:44 PM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction
Push: {
"object_kind" : "push",
"event_name" : "push",
"before" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"after" : "084ae98cac7dcffdb9c9868355470a9743ffb7cf",
"ref" : "refs/heads/feature_AF-142",
"checkout_sha" : "084ae98cac7dcffdb9c9868355470a9743ffb7cf",
"message" : null,
"user_id" : 15,
"user_name" : "John Doe",
"user_email" : "john.doe@example.com",
"user_avatar" : "https://gitlab.example.com/uploads/user/avatar/15/orange-smaller.jpeg",
"project_id" : 23,
"project" : {
"name" : "api_foo",
"description" : "",
"web_url" : "https://gitlab.example.com/bar/api_foo",
"avatar_url" : "https://gitlab.example.com/uploads/project/avatar/23/apifoo.png",
"git_ssh_url" : "git@gitlab.example.com:bar/api_foo.git",
"git_http_url" : "https://gitlab.example.com/bar/api_foo.git",
"namespace" : "bar",
"visibility_level" : 0,
"path_with_namespace" : "bar/api_foo",
"default_branch" : "master",
"homepage" : "https://gitlab.example.com/bar/api_foo",
"url" : "git@gitlab.example.com:bar/api_foo.git",
"ssh_url" : "git@gitlab.example.com:bar/api_foo.git",
"http_url" : "https://gitlab.example.com/bar/api_foo.git"
},
"commits" : [ {
"id" : "084ae98cac7dcffdb9c9868355470a9743ffb7cf",
"message" : "AF-142: Enable automated release building",
"timestamp" : "2017-04-03T16:02:26+02:00",
"url" : "https://gitlab.example.com/bar/api_foo/commit/084ae98cac7dcffdb9c9868355470a9743ffb7cf",
"author" : {
"name" : "John Doe",
"email" : "john.doe@example.com"
},
"added" : [ ".gitlab-ci.yml" ],
"modified" : [ ],
"removed" : [ ]
} ],
"total_commits_count" : 1,
"repository" : {
"name" : "api_foo",
"url" : "git@gitlab.example.com:bar/api_foo.git",
"description" : "",
"homepage" : "https://gitlab.example.com/bar/api_foo",
"git_http_url" : "https://gitlab.example.com/bar/api_foo.git",
"git_ssh_url" : "git@gitlab.example.com:bar/api_foo.git",
"visibility_level" : 0
}
}
Apr 03, 2017 4:02:44 PM INFO com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler handle
docker_api_foo-features triggered for push.
Apr 03, 2017 4:02:44 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Call GitLab:
HTTP method: POST
URL: https://gitlab.example.com/api/v3/projects/23/statuses/084ae98cac7dcffdb9c9868355470a9743ffb7cf
Request headers: [
Accept = [application/json],
Content-Type = [application/x-www-form-urlencoded],
PRIVATE-TOKEN = [****FILTERED****]
]
Apr 03, 2017 4:02:44 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.example.com/api/v3/projects/23/statuses/084ae98cac7dcffdb9c9868355470a9743ffb7cf
Status: 201 Created
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [Keep-Alive],
Content-Length = [481],
Content-Type = [application/json],
Date = [Mon, 03 Apr 2017 14:02:27 GMT],
Etag = [W/"614a2857fe202ecca471aa3038be3bdb"],
Keep-Alive = [timeout=15, max=99],
Strict-Transport-Security = [max-age=63072000],
Vary = [Origin],
X-Request-Id = [b8f8c395-89c2-4390-b1eb-c22db1546035],
X-Runtime = [0.127572]
]
Response body: {
"id" : 5685,
"sha" : "084ae98cac7dcffdb9c9868355470a9743ffb7cf",
"ref" : "feature_AF-142",
"status" : "pending",
"name" : "jenkins",
"target_url" : "https://jenkins.example.com/job/docker_api_foo-features/821/",
"description" : null,
"created_at" : "2017-04-03T16:02:27.792+02:00",
"started_at" : null,
"finished_at" : null,
"allow_failure" : false,
"coverage" : null,
"author" : {
"name" : "Gitlab-CI",
"username" : "gitlabci",
"id" : 16,
"state" : "active",
"avatar_url" : null,
"web_url" : "https://gitlab.example.com/gitlabci"
}
}
Apr 03, 2017 4:02:51 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Apr 03, 2017 4:02:51 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Call GitLab:
HTTP method: GET
URL: https://gitlab.example.com/api/v3/projects/23/repository/commits/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Request headers: [
Accept = [application/json],
PRIVATE-TOKEN = [****FILTERED****]
]
Apr 03, 2017 4:02:51 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.example.com/api/v3/projects/23/repository/commits/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Status: 200 OK
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [Keep-Alive],
Content-Length = [723],
Content-Type = [application/json],
Date = [Mon, 03 Apr 2017 14:02:34 GMT],
Etag = [W/"9107ab2681a87532c75f6c14d4f9e703"],
Keep-Alive = [timeout=15, max=98],
Strict-Transport-Security = [max-age=63072000],
Vary = [Origin],
X-Request-Id = [8d1028f9-2205-4e02-a84c-4eb10ce75f96],
X-Runtime = [0.117650]
]
Response body: {
"id" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"short_id" : "5bb2a383",
"title" : "Merge branch 'feature_AF-135' into 'master'\r",
"created_at" : "2017-03-15T12:18:24.000+01:00",
"parent_ids" : [ "68a9fca237c2921f58a0d10250e426c7cc2928b5", "dc3a5a4ca24d843cd70f3fbb244bf8f4c245189b" ],
"message" : "Merge branch 'feature_AF-135' into 'master'\r\n\r\nAF-135: Lorem ipsum\r\n\r\nSee merge request !38",
"author_name" : "John Doe",
"author_email" : "john.doe@example.com",
"authored_date" : "2017-03-15T12:18:24.000+01:00",
"committer_name" : "John Doe",
"committer_email" : "john.doe@example.com",
"committed_date" : "2017-03-15T12:18:24.000+01:00",
"stats" : {
"additions" : 92,
"deletions" : 6,
"total" : 98
},
"status" : "running"
}
Apr 03, 2017 4:02:51 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Call GitLab:
HTTP method: POST
URL: https://gitlab.example.com/api/v3/projects/23/statuses/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Request headers: [
Accept = [application/json],
Content-Type = [application/x-www-form-urlencoded],
PRIVATE-TOKEN = [****FILTERED****]
]
Apr 03, 2017 4:02:51 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.example.com/api/v3/projects/23/statuses/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Status: 201 Created
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [Keep-Alive],
Content-Length = [508],
Content-Type = [application/json],
Date = [Mon, 03 Apr 2017 14:02:34 GMT],
Etag = [W/"1d581ee4600fcd35fad33879e9598340"],
Keep-Alive = [timeout=15, max=97],
Strict-Transport-Security = [max-age=63072000],
Vary = [Origin],
X-Request-Id = [055b4ca7-f233-48a3-8261-251e5680bcda],
X-Runtime = [0.145669]
]
Response body: {
"id" : 5684,
"sha" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"ref" : "feature_AF-142",
"status" : "running",
"name" : "jenkins",
"target_url" : "https://jenkins.example.com/job/docker_api_foo-features/821/",
"description" : null,
"created_at" : "2017-04-03T16:02:27.428+02:00",
"started_at" : "2017-04-03T16:02:34.761+02:00",
"finished_at" : null,
"allow_failure" : false,
"coverage" : null,
"author" : {
"name" : "Gitlab-CI",
"username" : "gitlabci",
"id" : 16,
"state" : "active",
"avatar_url" : null,
"web_url" : "https://gitlab.example.com/gitlabci"
}
}
Apr 03, 2017 4:05:45 PM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Apr 03, 2017 4:05:45 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Call GitLab:
HTTP method: GET
URL: https://gitlab.example.com/api/v3/projects/23/repository/commits/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Request headers: [
Accept = [application/json],
PRIVATE-TOKEN = [****FILTERED****]
]
Apr 03, 2017 4:05:45 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.example.com/api/v3/projects/23/repository/commits/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Status: 200 OK
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [Keep-Alive],
Content-Length = [723],
Content-Type = [application/json],
Date = [Mon, 03 Apr 2017 14:05:28 GMT],
Etag = [W/"9107ab2681a87532c75f6c14d4f9e703"],
Keep-Alive = [timeout=15, max=100],
Strict-Transport-Security = [max-age=63072000],
Vary = [Origin],
X-Request-Id = [16596ff2-46c3-416c-a3a7-47cb64697a85],
X-Runtime = [0.101251]
]
Response body: {
"id" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"short_id" : "5bb2a383",
"title" : "Merge branch 'feature_AF-135' into 'master'\r",
"created_at" : "2017-03-15T12:18:24.000+01:00",
"parent_ids" : [ "68a9fca237c2921f58a0d10250e426c7cc2928b5", "dc3a5a4ca24d843cd70f3fbb244bf8f4c245189b" ],
"message" : "Merge branch 'feature_AF-135' into 'master'\r\n\r\nAF-135: Lorem ipsum\r\n\r\nSee merge request !38",
"author_name" : "John Doe",
"author_email" : "john.doe@example.com",
"authored_date" : "2017-03-15T12:18:24.000+01:00",
"committer_name" : "John Doe",
"committer_email" : "john.doe@example.com",
"committed_date" : "2017-03-15T12:18:24.000+01:00",
"stats" : {
"additions" : 92,
"deletions" : 6,
"total" : 98
},
"status" : "running"
}
Apr 03, 2017 4:05:45 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Call GitLab:
HTTP method: POST
URL: https://gitlab.example.com/api/v3/projects/23/statuses/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Request headers: [
Accept = [application/json],
Content-Type = [application/x-www-form-urlencoded],
PRIVATE-TOKEN = [****FILTERED****]
]
Apr 03, 2017 4:05:45 PM FINEST com.dabsquared.gitlabjenkins.gitlab.GitLabClientBuilder
Got response from GitLab:
URL: https://gitlab.example.com/api/v3/projects/23/statuses/5bb2a3838a84a55e54e919a760b07aab915c5cfd
Status: 201 Created
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [Keep-Alive],
Content-Length = [535],
Content-Type = [application/json],
Date = [Mon, 03 Apr 2017 14:05:28 GMT],
Etag = [W/"b1adf6885addc18ec2f5354e766f9083"],
Keep-Alive = [timeout=15, max=99],
Strict-Transport-Security = [max-age=63072000],
Vary = [Origin],
X-Request-Id = [3a53d17f-581a-4a23-ab94-f79231a5860c],
X-Runtime = [0.133238]
]
Response body: {
"id" : 5684,
"sha" : "5bb2a3838a84a55e54e919a760b07aab915c5cfd",
"ref" : "feature_AF-142",
"status" : "success",
"name" : "jenkins",
"target_url" : "https://jenkins.example.com/job/docker_api_foo-features/821/",
"description" : null,
"created_at" : "2017-04-03T16:02:27.428+02:00",
"started_at" : "2017-04-03T16:02:34.761+02:00",
"finished_at" : "2017-04-03T16:05:28.420+02:00",
"allow_failure" : false,
"coverage" : null,
"author" : {
"name" : "Gitlab-CI",
"username" : "gitlabci",
"id" : 16,
"state" : "active",
"avatar_url" : null,
"web_url" : "https://gitlab.example.com/gitlabci"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment