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

Apply default Jenkinsfile against branch name patterns

XMLWordPrintable

      Default Jenkinsfile get's applied to each available branch. Would it be possible to restrict this behavior using pattern matching to that I don't have to fill one Jenkinsfile with

      when {
        branch "master"
      }
      when {
        branch "develop"
      }
      when {
        branch "hotfix/**"
      }
      when {
        branch "support/**"
      }
      when {
        branch "release/**"
      }
      

      but instead I could split these sections into 5 individual Jenkinsfiles. The non-mached branched would not be indexes.

            vaimr Denis Saponenko
            tuomas_kiviaho tuomas_kiviaho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: