Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59025

Extra pending job created for same commit in GitLab self hosted server

    Details

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

      Description

      Additional pending job is created alongside the normal job. Only seen in self hosted GitLab Server instance.

        Attachments

          Activity

          Hide
          baymac Parichay Barpanda added a comment - - edited

          This issue arises when the `Jenkinsfile` is changed. When any file other than Jenkinfiles is changed the pipeline status works as expected.

          Show
          baymac Parichay Barpanda added a comment - - edited This issue arises when the `Jenkinsfile` is changed. When any file other than Jenkinfiles is changed the pipeline status works as expected.
          Hide
          baymac Parichay Barpanda added a comment -

          This is actually a race condition. The checkout url is invalid in my GitLab Server so pipeline fails just soon as the build starts, so the build status is made prior to the pending status. Thus we have 2 different jobs. To avoid this problem we have synchronization in place yet it is failing. I think this shouldn't be the case generally when the checkout url is valid because the pipeline execution will take some time to checkout the repository by that time GitLab Server should have been notified about the pending status. Might open it if issue arises in general cases.

          Show
          baymac Parichay Barpanda added a comment - This is actually a race condition. The checkout url is invalid in my GitLab Server so pipeline fails just soon as the build starts, so the build status is made prior to the pending status. Thus we have 2 different jobs. To avoid this problem we have synchronization in place yet it is failing. I think this shouldn't be the case generally when the checkout url is valid because the pipeline execution will take some time to checkout the repository by that time GitLab Server should have been notified about the pending status. Might open it if issue arises in general cases.

            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: