{"action":"opened","issue":{"url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/783","repository_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin","labels_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/783/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/783/comments","events_url":"https://api.github.com/repos/jenkinsci/gitlab-plugin/issues/783/events","html_url":"https://github.com/jenkinsci/gitlab-plugin/issues/783","id":334918851,"node_id":"MDU6SXNzdWUzMzQ5MTg4NTE=","number":783,"title":"Possible to inform GitLab of pending job as soon as pipeline is triggered?","user":{"login":"MarcelNehring","id":4940453,"node_id":"MDQ6VXNlcjQ5NDA0NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/4940453?v=4","gravatar_id":"","url":"https://api.github.com/users/MarcelNehring","html_url":"https://github.com/MarcelNehring","followers_url":"https://api.github.com/users/MarcelNehring/followers","following_url":"https://api.github.com/users/MarcelNehring/following{/other_user}","gists_url":"https://api.github.com/users/MarcelNehring/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcelNehring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcelNehring/subscriptions","organizations_url":"https://api.github.com/users/MarcelNehring/orgs","repos_url":"https://api.github.com/users/MarcelNehring/repos","events_url":"https://api.github.com/users/MarcelNehring/events{/privacy}","received_events_url":"https://api.github.com/users/MarcelNehring/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T15:20:55Z","updated_at":"2018-06-22T15:20:55Z","closed_at":null,"author_association":"NONE","body":"## Issue\r\n\r\n### Context\r\n- **Gitlab plugin version**: 1.5.6\r\n- **Gitlab version**: 10.8.4\r\n- **Jenkins version**: 2.121.1\r\n- **Job type**: Pipeline\r\n\r\n### Problem description\r\n\r\nThis is a follow-up question to #420 \r\n\r\nIf I put `gitlabCommitStatus` after the checkout this also means that informing GitLab about the pending Jenkins job is postponed until after the checkout. If the pipeline has to wait for a node to become available or the checkout takes a long time users will not see that a pipeline run is pending. Is there a workaround for this?\r\n\r\nWhat confuses me a bit is the fact that a freestyle job does not seem to have this limitation. As soon as the Jenkins job is triggered by GitLab it reports the pending job back to GitLab. Also if I am not mistaken the commit hash of the revision is included in the JSON data GitLab posts to Jenkins via the webhook. Why do we have to wait for the checkout to know which revision is being build?"}}
{"actor":{"display_login":"MarcelNehring"}}