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

Bitbucket Server Integration vs. concurrent builds

    XMLWordPrintable

Details

    Description

      I would like to use the Bitbucket Server Integration (BSI) plugin with concurrent builds in Jenkins. Bitbucket and Jenkins are set up according to the setup guide for BSI, and building of individual pushes to Bitbucket works fine.

      However I would like to do concurrent builds, so I've enabled "Execute concurrent builds if neccesary" for the Jenkins project.

      These are my observations:

      1: If I push two independent branches to Bitbucket shortly after each other, Jenkins builds the first branch, but the second branch isn't built until the first build completes. Ideally, both should start building right away, if there are available executors.

      2: If I push three independent branches to Bitbucket almost at the same time, Jenkins builds the first branch, but does not launch more builds until first build is done. When done, four more builds start in parallel, two for each of the two leftover branches. I.e. the last two commits are each built twice instead of once, which is of course waste of build server bandwidth. I've also seen only the last commit being built twice, while the middle commit wasn't built at all. Not sure what the difference is.

      My simple hope is that each build is started right away as long as there are available executors - and of course, that no duplicate builds will happen.

      I have a workaround, using another trigger plugin combined with a parameterized build. But that won't let me post build status with an active link to Jenkins back to Bitbucket.

      I hope you will be able to take a look at this.

      Attachments

        Activity

          sjh_schilling Søren created issue -
          sjh_schilling Søren made changes -
          Field Original Value New Value
          Description I would like to use the Bitbucket Server Integration (BSI) plugin with concurrent builds in Jenkins. Bitbucket and Jenkins are set up according to the setup guide for BSI, and building of individual pushes to Bitbucket works fine.

          However I would like to do concurrent builds, so I've enabled "Execute concurrent builds if neccesary" for the Jenkins project.

          These are my observations:

          1: If I push two independent branches to Bitbucket shortly after each other, Jenkins builds the first branch, _but the second branch isn't built until the first build completes_. Ideally, both should start building right away, if there are available executors.

          2: If I push three independent branches to Bitbucket almost at the same time, Jenkins builds the first branch, but does not launch more builds until first build is done. When done, _four more builds start in parallel, two for each of the two leftover branches_. I.e. the last two commits are each built twice instead of once, which is of course waste of build server bandwidth. I've also seen only the last commit being built twice, while the middle commit wasn't built at all. Not sore what the difference is.

          My simple hope is that each build is started right away as long as there are available executors - and of course, that no duplicate builds will happen.

          I have a workaround, using another trigger plugin combined with a parameterized build. But that won't let me post build status with an active link to Jenkins back to Bitbucket.

          I hope you will be able to take a look at this.
          I would like to use the Bitbucket Server Integration (BSI) plugin with concurrent builds in Jenkins. Bitbucket and Jenkins are set up according to the setup guide for BSI, and building of individual pushes to Bitbucket works fine.

          However I would like to do concurrent builds, so I've enabled "Execute concurrent builds if neccesary" for the Jenkins project.

          These are my observations:

          1: If I push two independent branches to Bitbucket shortly after each other, Jenkins builds the first branch, _but the second branch isn't built until the first build completes_. Ideally, both should start building right away, if there are available executors.

          2: If I push three independent branches to Bitbucket almost at the same time, Jenkins builds the first branch, but does not launch more builds until first build is done. When done, _four more builds start in parallel, two for each of the two leftover branches_. I.e. the last two commits are each built twice instead of once, which is of course waste of build server bandwidth. I've also seen only the last commit being built twice, while the middle commit wasn't built at all. Not sure what the difference is.

          My simple hope is that each build is started right away as long as there are available executors - and of course, that no duplicate builds will happen.

          I have a workaround, using another trigger plugin combined with a parameterized build. But that won't let me post build status with an active link to Jenkins back to Bitbucket.

          I hope you will be able to take a look at this.
          mhenschke_atlassian Martin Henschke made changes -
          Assignee Kristy Hughes [ khughes ]
          nkagaoan Naj made changes -
          Labels triaged

          People

            Unassigned Unassigned
            sjh_schilling Søren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: