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

Stash Pull Request Builder Multiple PR in single build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Ref : https://github.com/HB-2012 comments on https://gitter.im/jenkinsci/stash-pullrequest-builder-plugin

      Hi there. In my organization I have a PR pipeline set up using the experimental support for pipelines. I keep noticing that our job keeps building a bunch of PRs in a single build, which is undesirable since the Stash Notifier plugin doesn't understand this and only reports a successful build for a single PR, even tho apparently the PR builder plugin recognizes it has started builds for multiple PRs. We're dealing with a huge amount of PRs here (about 20-30 developers and therefor we can have 40 PRs open at any given time).

      Git settings are configured as per the manual and we've set the following configuration for the Git PR builder plugin
      Is this standard behavior for the Stash PR builder or am I missing something?

        Attachments

          Issue Links

            Activity

            Hide
            upkarrai Upkar Rai added a comment -

            Sorry if I was not clear. I did a mvn hpi:run for commit  d3bba2491043066fb793fb32fefa6f7dedf2aa0b and test it. Works as expected.

            Show
            upkarrai Upkar Rai added a comment - Sorry if I was not clear. I did a mvn hpi:run for commit  d3bba2491043066fb793fb32fefa6f7dedf2aa0b and test it. Works as expected.
            Hide
            proski Pavel Roskin added a comment -

            Did you actually set up a job and verify that queue items don't get folded?

            By the way, I wasn't aware of "mvn hpi:run", that's a great way to verify changes quickly! I was able to configure a job and test it with two pull requests. I saw them in the queue, and they were run separately.

            I didn't see the Credentials menu the first time, but it appeared after the restart.

            Show
            proski Pavel Roskin added a comment - Did you actually set up a job and verify that queue items don't get folded? By the way, I wasn't aware of "mvn hpi:run", that's a great way to verify changes quickly! I was able to configure a job and test it with two pull requests. I saw them in the queue, and they were run separately. I didn't see the Credentials menu the first time, but it appeared after the restart.
            Hide
            upkarrai Upkar Rai added a comment -

            Yes , 2 jobs were created for 2 PRs

            Show
            upkarrai Upkar Rai added a comment - Yes , 2 jobs were created for 2 PRs
            Hide
            jbochenski Jakub Bochenski added a comment -

            FTR you could also use the incremental builds https://jenkins.io/blog/2018/05/15/incremental-deployment/
            I deploy Jenkins from a docker container it's much more convinient to just add a line like :incrementals;org.jenkins-ci.plugins;VERSION

            Show
            jbochenski Jakub Bochenski added a comment - FTR you could also use the incremental builds https://jenkins.io/blog/2018/05/15/incremental-deployment/ I deploy Jenkins from a docker container it's much more convinient to just add a line like :incrementals;org.jenkins-ci.plugins;VERSION
            Hide
            jbochenski Jakub Bochenski added a comment -

            Released as v. 1.14

            Show
            jbochenski Jakub Bochenski added a comment - Released as v. 1.14

              People

              Assignee:
              proski Pavel Roskin
              Reporter:
              upkarrai Upkar Rai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: