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

Multibranch Plugin: Shouldn't run every branch on re-index

XMLWordPrintable

      Whenever a multi branch project gets reindexed, every branch with a discovered Jenkinsfile triggers a build. I have logic in my Jenkinsfiles that actually deploys into a specified infrastructure environment if a build is triggered on the develop branch. If the project gets re-indexed, then Jenkins will attempt to deploy (and not just test) when I would strongly prefer that it not deploy.

      It would be an improvement to allow users to configure indexing to only initiate a build if the branch is new to the multi branch project. I believe this would be the preferred behavior for many.

            stephenconnolly Stephen Connolly
            demitriswan Demitri Swan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: