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

When condition for Branch build with comparator

    Details

    • Similar Issues:

      Description

      https://issues.jenkins-ci.org/browse/JENKINS-48523  added support to the tag when condition with the comparator. 

      At the moment, the branch when condition does support GLOB, but no REGEXP patterns. Let's standardize the branch condition format as done with the tag condition.

      
      when {
          branch "release-*"
      }
      when {
          branch pattern: "release-*", comparator: "GLOB"
      } 
      when {
          branch pattern: "release-\\d+", comparator: "REGEXP"
      } 

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              v2v Victor Martinez
              Reporter:
              v2v Victor Martinez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: