Details
-
Improvement
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
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
- is related to
-
JENKINS-28348 Cannot use number from version number plugin as pipeline version
-
- Closed
-
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.