Skip to content

Instantly share code, notes, and snippets.

@dmclean62
Created July 30, 2020 19:20
Show Gist options
  • Save dmclean62/4750caecc897df3b81ddf9caf0f4f941 to your computer and use it in GitHub Desktop.
Save dmclean62/4750caecc897df3b81ddf9caf0f4f941 to your computer and use it in GitHub Desktop.
Jul 30, 2020 7:12:48 PM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/DSB/PROMPT%20Change%20Integration/project/Prompt
Jul 30, 2020 7:12:48 PM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction
Push: {
"object_kind" : "push",
"event_name" : "push",
"before" : "406c22dda14cd411d04bb77bec329a452167841c",
"after" : "6a95b1cf53fd94680b44b45bb0fe568221462575",
"ref" : "refs/heads/PROMPT-49",
"checkout_sha" : "6a95b1cf53fd94680b44b45bb0fe568221462575",
"message" : null,
"user_id" : 484,
"user_name" : "me",
"user_username" : "me",
"user_email" : "",
"user_avatar" : "https://hostname/uploads/-/system/user/avatar/484/avatar.png",
"project_id" : 853,
"project" : {
"id" : 853,
"name" : "prompt",
"description" : "",
"web_url" : "https://hostname/OED_DSB/prompt",
"avatar_url" : null,
"git_ssh_url" : "git@hostname:OED_DSB/prompt.git",
"git_http_url" : "https://hostname/OED_DSB/prompt.git",
"namespace" : "OED_DSB",
"visibility_level" : 0,
"path_with_namespace" : "OED_DSB/prompt",
"default_branch" : "master",
"ci_config_path" : null,
"homepage" : "https://hostname/OED_DSB/prompt",
"url" : "git@hostname:OED_DSB/prompt.git",
"ssh_url" : "git@hostname:OED_DSB/prompt.git",
"http_url" : "https://hostname/OED_DSB/prompt.git"
},
"commits" : [ {
"id" : "6a95b1cf53fd94680b44b45bb0fe568221462575",
"message" : "PROMPT-49 updated email notifications\n",
"title" : "PROMPT-49 updated email notifications",
"timestamp" : "2020-07-30T15:12:34-04:00",
"url" : "https://hostname/OED_DSB/prompt/-/commit/6a95b1cf53fd94680b44b45bb0fe568221462575",
"author" : {
"name" : "me",
"email" : "me@here"
},
"added" : [ ],
"modified" : [ "Jenkinsfile.ci" ],
"removed" : [ ]
} ],
"total_commits_count" : 1,
"push_options" : { },
"repository" : {
"name" : "prompt",
"url" : "git@hostname:OED_DSB/prompt.git",
"description" : "",
"homepage" : "https://hostname/OED_DSB/prompt",
"git_http_url" : "https://hostname/OED_DSB/prompt.git",
"git_ssh_url" : "git@hostname:OED_DSB/prompt.git",
"visibility_level" : 0
}
}
Jul 30, 2020 7:12:49 PM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Call GitLab:
HTTP method: GET
URL: https://hostname/api/v4/projects/853/merge_requests?state=opened&page=1&per_page=100
Request headers: [
Accept = [application/json],
PRIVATE-TOKEN = [****FILTERED****]
]
Jul 30, 2020 7:12:49 PM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Got response from GitLab:
URL: https://hostname/api/v4/projects/853/merge_requests?state=opened&page=1&per_page=100
Status: 200 OK
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [keep-alive],
Content-Length = [1404],
Content-Type = [application/json],
Date = [Thu, 30 Jul 2020 19:12:49 GMT],
Etag = [W/"e92bf348dee26f2fe5bf79939d5c7dad"],
Link = [<https://hostname/api/v4/projects/853/merge_requests?id=853&order_by=created_at&page=1&per_page=100&sort=desc&state=opened&with_labels_details=false&with_merge_status_recheck=false>; rel="first", <https://hostname/api/v4/projects/853/merge_requests?id=853&order_by=created_at&page=1&per_page=100&sort=desc&state=opened&with_labels_details=false&with_merge_status_recheck=false>; rel="last"],
Referrer-Policy = [strict-origin-when-cross-origin],
Server = [nginx],
Strict-Transport-Security = [max-age=31536000],
Vary = [Origin],
X-Content-Type-Options = [nosniff],
X-Frame-Options = [SAMEORIGIN],
X-Next-Page = [],
X-Page = [1],
X-Per-Page = [100],
X-Prev-Page = [],
X-Request-Id = [kXauNKTNyt7],
X-Runtime = [0.063713],
X-Total = [1],
X-Total-Pages = [1]
]
Response body: [ {
"id" : 6507,
"iid" : 1,
"project_id" : 853,
"title" : "PROMPT-49 Test commit for exercising the CI build",
"description" : "",
"state" : "opened",
"created_at" : "2020-07-28T19:51:06.584Z",
"updated_at" : "2020-07-30T19:12:49.043Z",
"merged_by" : null,
"merged_at" : null,
"closed_by" : null,
"closed_at" : null,
"target_branch" : "master",
"source_branch" : "PROMPT-49",
"user_notes_count" : 0,
"upvotes" : 0,
"downvotes" : 0,
"assignee" : null,
"author" : {
"id" : 484,
"name" : "me",
"username" : "me",
"state" : "active",
"avatar_url" : "https://hostname/uploads/-/system/user/avatar/484/avatar.png",
"web_url" : "https://hostname/me"
},
"assignees" : [ ],
"source_project_id" : 853,
"target_project_id" : 853,
"labels" : [ ],
"work_in_progress" : false,
"milestone" : null,
"merge_when_pipeline_succeeds" : false,
"merge_status" : "unchecked",
"sha" : "6a95b1cf53fd94680b44b45bb0fe568221462575",
"merge_commit_sha" : null,
"squash_commit_sha" : null,
"discussion_locked" : null,
"should_remove_source_branch" : null,
"force_remove_source_branch" : false,
"reference" : "!1",
"references" : {
"short" : "!1",
"relative" : "!1",
"full" : "OED_DSB/prompt!1"
},
"web_url" : "https://hostname/OED_DSB/prompt/-/merge_requests/1",
"time_stats" : {
"time_estimate" : 0,
"total_time_spent" : 0,
"human_time_estimate" : null,
"human_total_time_spent" : null
},
"squash" : false,
"task_completion_status" : {
"count" : 0,
"completed_count" : 0
},
"has_conflicts" : false,
"blocking_discussions_resolved" : true,
"approvals_before_merge" : null
} ]
Jul 30, 2020 7:12:49 PM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Call GitLab:
HTTP method: GET
URL: https://hostname/api/v4/projects/853/merge_requests?state=opened&page=2&per_page=100
Request headers: [
Accept = [application/json],
PRIVATE-TOKEN = [****FILTERED****]
]
Jul 30, 2020 7:12:49 PM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/DSB/PROMPT%20Change%20Integration/project/Prompt
Jul 30, 2020 7:12:49 PM FINE com.dabsquared.gitlabjenkins.webhook.build.MergeRequestBuildAction
MergeRequest: {
"object_kind" : "merge_request",
"event_type" : "merge_request",
"user" : {
"name" : "me",
"username" : "dmclean",
"avatar_url" : "https://hostname/uploads/-/system/user/avatar/484/avatar.png",
"email" : "me@here"
},
"project" : {
"id" : 853,
"name" : "prompt",
"description" : "",
"web_url" : "https://hostname/OED_DSB/prompt",
"avatar_url" : null,
"git_ssh_url" : "git@hostname:OED_DSB/prompt.git",
"git_http_url" : "https://hostname/OED_DSB/prompt.git",
"namespace" : "OED_DSB",
"visibility_level" : 0,
"path_with_namespace" : "OED_DSB/prompt",
"default_branch" : "master",
"ci_config_path" : null,
"homepage" : "https://hostname/OED_DSB/prompt",
"url" : "git@hostname:OED_DSB/prompt.git",
"ssh_url" : "git@hostname:OED_DSB/prompt.git",
"http_url" : "https://hostname/OED_DSB/prompt.git"
},
"object_attributes" : {
"assignee_id" : null,
"author_id" : 484,
"created_at" : "2020-07-28 19:51:06 UTC",
"description" : "",
"head_pipeline_id" : null,
"id" : 6507,
"iid" : 1,
"last_edited_at" : null,
"last_edited_by_id" : null,
"merge_commit_sha" : null,
"merge_error" : null,
"merge_params" : {
"force_remove_source_branch" : "0"
},
"merge_status" : "unchecked",
"merge_user_id" : null,
"merge_when_pipeline_succeeds" : false,
"milestone_id" : null,
"source_branch" : "PROMPT-49",
"source_project_id" : 853,
"state_id" : 1,
"target_branch" : "master",
"target_project_id" : 853,
"time_estimate" : 0,
"title" : "PROMPT-49 Test commit for exercising the CI build",
"updated_at" : "2020-07-30 19:12:49 UTC",
"updated_by_id" : null,
"url" : "https://hostname/OED_DSB/prompt/-/merge_requests/1",
"source" : {
"id" : 853,
"name" : "prompt",
"description" : "",
"web_url" : "https://hostname/OED_DSB/prompt",
"avatar_url" : null,
"git_ssh_url" : "git@hostname:OED_DSB/prompt.git",
"git_http_url" : "https://hostname/OED_DSB/prompt.git",
"namespace" : "OED_DSB",
"visibility_level" : 0,
"path_with_namespace" : "OED_DSB/prompt",
"default_branch" : "master",
"ci_config_path" : null,
"homepage" : "https://hostname/OED_DSB/prompt",
"url" : "git@hostname:OED_DSB/prompt.git",
"ssh_url" : "git@hostname:OED_DSB/prompt.git",
"http_url" : "https://hostname/OED_DSB/prompt.git"
},
"target" : {
"id" : 853,
"name" : "prompt",
"description" : "",
"web_url" : "https://hostname/OED_DSB/prompt",
"avatar_url" : null,
"git_ssh_url" : "git@hostname:OED_DSB/prompt.git",
"git_http_url" : "https://hostname/OED_DSB/prompt.git",
"namespace" : "OED_DSB",
"visibility_level" : 0,
"path_with_namespace" : "OED_DSB/prompt",
"default_branch" : "master",
"ci_config_path" : null,
"homepage" : "https://hostname/OED_DSB/prompt",
"url" : "git@hostname:OED_DSB/prompt.git",
"ssh_url" : "git@hostname:OED_DSB/prompt.git",
"http_url" : "https://hostname/OED_DSB/prompt.git"
},
"last_commit" : {
"id" : "6a95b1cf53fd94680b44b45bb0fe568221462575",
"message" : "PROMPT-49 updated email notifications\n",
"title" : "PROMPT-49 updated email notifications",
"timestamp" : "2020-07-30T15:12:34-04:00",
"url" : "https://hostname/OED_DSB/prompt/-/commit/6a95b1cf53fd94680b44b45bb0fe568221462575",
"author" : {
"name" : "me",
"email" : "me@here"
}
},
"work_in_progress" : false,
"total_time_spent" : 0,
"human_total_time_spent" : null,
"human_time_estimate" : null,
"assignee_ids" : [ ],
"state" : "opened",
"action" : "update",
"oldrev" : "406c22dda14cd411d04bb77bec329a452167841c"
},
"labels" : [ ],
"changes" : {
"updated_at" : {
"previous" : "2020-07-29 16:05:59 UTC",
"current" : "2020-07-30 19:12:49 UTC"
},
"total_time_spent" : {
"previous" : null,
"current" : 0
}
},
"repository" : {
"name" : "prompt",
"url" : "git@hostname:OED_DSB/prompt.git",
"description" : "",
"homepage" : "https://hostname/OED_DSB/prompt"
}
}
Jul 30, 2020 7:12:49 PM INFO com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler handle
DSB/PROMPT Change Integration triggered for merge request.
Jul 30, 2020 7:12:49 PM FINEST com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder
Got response from GitLab:
URL: https://hostname/api/v4/projects/853/merge_requests?state=opened&page=2&per_page=100
Status: 200 OK
Response headers: [
Cache-Control = [max-age=0, private, must-revalidate],
Connection = [keep-alive],
Content-Length = [2],
Content-Type = [application/json],
Date = [Thu, 30 Jul 2020 19:12:49 GMT],
Etag = [W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"],
Link = [<https://hostname/api/v4/projects/853/merge_requests?id=853&order_by=created_at&page=1&per_page=100&sort=desc&state=opened&with_labels_details=false&with_merge_status_recheck=false>; rel="first", <https://hostname/api/v4/projects/853/merge_requests?id=853&order_by=created_at&page=1&per_page=100&sort=desc&state=opened&with_labels_details=false&with_merge_status_recheck=false>; rel="last"],
Referrer-Policy = [strict-origin-when-cross-origin],
Server = [nginx],
Strict-Transport-Security = [max-age=31536000],
Vary = [Origin],
X-Content-Type-Options = [nosniff],
X-Frame-Options = [SAMEORIGIN],
X-Next-Page = [],
X-Page = [2],
X-Per-Page = [100],
X-Prev-Page = [],
X-Request-Id = [pa11zCZho33],
X-Runtime = [0.036119],
X-Total = [1],
X-Total-Pages = [1]
]
Response body: [ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment