Details

    • Similar Issues:
    • Sprint:
      GSoC 2019. Coding Phase 2

      Description

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

        Attachments

          Issue Links

            Activity

            Hide
            baymac Parichay Barpanda added a comment -

            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)
            
            Show
            baymac Parichay Barpanda added a comment - 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)
            Hide
            baymac Parichay Barpanda added a comment -
            Show
            baymac Parichay Barpanda added a comment - Fixed enqueue error in 2cc7de2 of https://github.com/baymac/gitlab-branch-source-plugin/pull/22 .
            Hide
            baymac Parichay Barpanda added a comment -

            Need to add stages information to pipeline.

            Show
            baymac Parichay Barpanda added a comment - Need to add stages information to pipeline.
            Show
            baymac Parichay Barpanda added a comment - Fixed for now. See https://github.com/baymac/gitlab-branch-source-plugin/pull/22#issuecomment-510342809

              People

              • Assignee:
                baymac Parichay Barpanda
                Reporter:
                baymac Parichay Barpanda
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: