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
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
TokenMacro for getting a version value stored in environment variable. As a parameter it is possible to remove -SNAPSHOT from the version. |
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"} |
Assignee | Patrik Boström [ patbos ] |
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"} |
TokenMacro for getting a version value stored in environment variable. As a parameter it is possible to remove -SNAPSHOT from the version. Example: {code} ${ENV_VERSION,var="POM_VERSION",stripSnapshot=true} ${ENV_VERSION,var="POM_VERSION"} {code} |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Link |
This issue is related to |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Workflow | JNJira [ 156114 ] | JNJira + In-Review [ 207786 ] |
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.