Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4777

Match property for profile activation against a regex

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.0.11
    • None
    • Profiles
    • None

    Description

      For activating a profile it would be nice, in addition or as a seperate feature to MNG-3328, to match a property not against a specific value but against a regex. In our case, we need to set some properties for some hudson builds. Not only is that setup fragile against job name changes, but also doesn't scale for multiple jobs. IMHO adding a regex matcher would be a nice feature for multiple purposes.

      Old:

      <activation>
        <property>
          <name>env.JOB_NAME</name>
          <value>xyz-abc-foo/label=robotframework,maven.browser-profile=firefox,maven.env-profile=dev</value>
        </property>
      </activation>
      

      New:

      <activation>
        <property>
          <name>env.JOB_NAME</name>
          <regex>xyz-abc-foo/.*</regex>
        </property>
      </activation>
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            andreasek Andreas Ebbert-Karroum
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment