[JIRA] (JENKINS-58400) Fix GitLabBuildStatusNotifier

14 views
Skip to first unread message

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 9, 2019, 5:31:03 AM7/9/19
to jenkinsc...@googlegroups.com
Parichay Barpanda created an issue
 
Jenkins / New Feature JENKINS-58400
Fix GitLabBuildStatusNotifier
Issue Type: New Feature New Feature
Assignee: Parichay Barpanda
Components: gitlab-branch-source-plugin
Created: 2019-07-09 09:30
Labels: gsoc-2019
Priority: Major Major
Reporter: Parichay Barpanda

This feature adds support for notifiying the status of the project build status to the GitLab Server.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 9, 2019, 5:32:02 AM7/9/19
to jenkinsc...@googlegroups.com
Parichay Barpanda started work on New Feature JENKINS-58400
 
Change By: Parichay Barpanda
Status: Open In Progress

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 9, 2019, 5:36:01 AM7/9/19
to jenkinsc...@googlegroups.com
Parichay Barpanda commented on New Feature JENKINS-58400
 
Re: Fix GitLabBuildStatusNotifier

Currently the implementation of GitLabBuildStatusNotifier publishes the build result and GitLab Server notifies if pipeline fails but there is error in the console:

org.gitlab4j.api.GitLabApiException: Cannot transition status via :enqueue from :pending (Reason(s): Status cannot transition via "enqueue")
        at org.gitlab4j.api.AbstractApi.validate(AbstractApi.java:593)
        at org.gitlab4j.api.AbstractApi.post(AbstractApi.java:264)
        at org.gitlab4j.api.CommitsApi.addCommitStatus(CommitsApi.java:452)
        at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabSCMBuildStatusPublisher.sendNotifications(GitLabSCMBuildStatusPublisher.java:126)
        at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabSCMBuildStatusPublisher.access$200(GitLabSCMBuildStatusPublisher.java:48)
        at io.jenkins.plugins.gitlabbranchsource.helpers.GitLabSCMBuildStatusPublisher$JobCheckOutListener.onCheckout(GitLabSCMBuildStatusPublisher.java:241)
        at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136)
        at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
        at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
        at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 10, 2019, 5:35:03 AM7/10/19
to jenkinsc...@googlegroups.com

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 10, 2019, 9:20:02 PM7/10/19
to jenkinsc...@googlegroups.com
Parichay Barpanda updated an issue
Change By: Parichay Barpanda
Sprint: GSoC - 2019. Coding Phase 2

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 10, 2019, 9:22:01 PM7/10/19
to jenkinsc...@googlegroups.com

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 10, 2019, 9:23:02 PM7/10/19
to jenkinsc...@googlegroups.com
 
Re: Fix GitLabBuildStatusNotifier

Need to add stages information to pipeline.

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 11, 2019, 10:41:02 AM7/11/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages