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

Apply default Jenkinsfile against branch name patterns

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated: