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

When condition for Changeset with comparator

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      1.5.0

      Description

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

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

      when {
          changeset "**/*.java"
      }
      when {
          changeset pattern: "**/*.java", comparator: "GLOB"
      } 
      when {
          changeset pattern: ".*\\.java", comparator: "REGEXP"
      } 

        Attachments

          Issue Links

            Activity

            v2v Victor Martinez created issue -
            v2v Victor Martinez made changes -
            Field Original Value New Value
            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.
            {code:java}

            when {
                branch "release-*"
            }
            when {
                branch pattern: "release-*", comparator: "GLOB"
            }
            when {
                branch pattern: "release-\\d+", comparator: "REGEXP"
            } {code}
            https://issues.jenkins-ci.org/browse/JENKINS-48523  added support to the tag when condition with the comparator. 

            At the moment, the changeset when condition does support GLOB, but no REGEXP patterns. Let's standardize the changeset condition format as done with the tag condition.
            {code:java}
            when {
                changeset "**/*.java"
            }
            when {
                changeset pattern: "**/*.java", comparator: "GLOB"
            }
            when {
                changeset pattern: ".*\\.java", comparator: "REGEXP"
            } {code}
            v2v Victor Martinez made changes -
            Released As 1.4.0
            v2v Victor Martinez made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            v2v Victor Martinez made changes -
            Remote Link This issue links to "PR (Web Link)" [ 24106 ]
            v2v Victor Martinez made changes -
            Remote Link This issue links to "PR-DOCS (Web Link)" [ 24107 ]
            v2v Victor Martinez made changes -
            Released As 1.5.0
            jglick Jesse Glick made changes -
            Link This issue causes JENKINS-59785 [ JENKINS-59785 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: