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

make trigger match both repository and branch

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      I'm trying to setup the build of a pipeline for a project hosted on bitbucket. We have multiple pipelines configured on Jenkins for the same repository but for different branches. I want to build a specific pipeline only when both the repository and the branch that triggered the webhook is from a branch listed in the "branches to build" configuration. Currently a build is triggered on every push on the repository despite the branch configured. Is this use case already supported and I am missing something? If not would you accept any contribution in that regard? I'm new to Jenkins (and Java) but I can hack something i guess.

      Thanks!

        Attachments

          Activity

          Hide
          tzach_solomon Tzach Solomon added a comment -

          Riccardo feel free to submit a PR and i'll review it

          Show
          tzach_solomon Tzach Solomon added a comment - Riccardo  feel free to submit a PR and i'll review it

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rm__ Riccardo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: