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

TokenMacro for getting a version value stored in environment variable

    Details

    • Similar Issues:

      Description

      TokenMacro for getting a version value stored in environment variable.
      As a parameter it is possible to remove -SNAPSHOT from the version.
      Example:

      ${ENV_VERSION,var="POM_VERSION",stripSnapshot=true}
      ${ENV_VERSION,var="POM_VERSION"}
      

        Attachments

          Issue Links

            Activity

            Hide
            pmatignon Patrice Matignon added a comment -

            I'd be interesting in this enhancement, with my particular use case being the "Stage Name", "Task Name" fields, where these two could have dynamic values based on Job Parameters.

            On a side note, I feel that the title of this JIRA ticket could be made more specific. It wasn't explicit to me where usage of the Token Macro was requested for instance.

            Show
            pmatignon Patrice Matignon added a comment - I'd be interesting in this enhancement, with my particular use case being the "Stage Name", "Task Name" fields, where these two could have dynamic values based on Job Parameters. On a side note, I feel that the title of this JIRA ticket could be made more specific. It wasn't explicit to me where usage of the Token Macro was requested for instance.
            Hide
            pmatignon Patrice Matignon added a comment -

            Actually, I see that for my very use case, there is an existing ticket already created:
            https://issues.jenkins-ci.org/browse/JENKINS-20608
            So I suppose I'm still not clear what this ticket right here is requesting. Much sorry for the noise.

            Show
            pmatignon Patrice Matignon added a comment - Actually, I see that for my very use case, there is an existing ticket already created: https://issues.jenkins-ci.org/browse/JENKINS-20608 So I suppose I'm still not clear what this ticket right here is requesting. Much sorry for the noise.
            Hide
            patbos Patrik Boström added a comment -

            Merged PR

            Show
            patbos Patrik Boström added a comment - Merged PR
            Hide
            patbos Patrik Boström added a comment -

            Released in 0.9.6

            Show
            patbos Patrik Boström added a comment - Released in 0.9.6

              People

              • Assignee:
                Unassigned
                Reporter:
                patbos Patrik Boström
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: