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

It is not possible to choose a job to trigger with Bitbucket Webhook

      I'm using  Jenkins 2.176 with Bitbucket cloud and bitbucket-branch-source-plugin 2.4.0.

      Follow https://support.cloudbees.com/hc/en-us/articles/115000053051-How-to-Trigger-Multibranch-Jobs-from-Bitbucket-Server-  and everything works for me. 

      But in my organization, I have often the situation that I have one Repository in bitbucket and e.g 2 Jenkins Multibranchpieline job. I don't want to trigger both project i.e when PR appear. Is there any way to specify which job should be triggered in such a case?

       

       

          [JENKINS-58738] It is not possible to choose a job to trigger with Bitbucket Webhook

          Nikolas Falco added a comment -

          You have to remove the webhook to the Jenkins instance you would not trigger the builds.
          Otherwise you have implement yourself or look around if there is a BuildStrategy implementation (basic-branch-build-strategies-plugin) that is able to not schedule a build using some kind of logic that fit you need.

          Nikolas Falco added a comment - You have to remove the webhook to the Jenkins instance you would not trigger the builds. Otherwise you have implement yourself or look around if there is a BuildStrategy implementation (basic-branch-build-strategies-plugin) that is able to not schedule a build using some kind of logic that fit you need.

            nfalco Nikolas Falco
            ppodbielski Pawel Podbielski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: