Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
Description
Currently there is ${CAUSE} that prints the upstream job that triggered this build. It would be nice to have a the details of the cause available in tokens also, especially the URL. Then the mail can contain a clickable link, which is quite convenient in some case then a build pipeline exists, where one want to get to the "main" job directly.
Having these token available would be really nice:
- ${CAUSE_BUILD_URL}: equivalent of ${BUILD_URL}
- ${CAUSE_PROJECT_NAME}: equivalent of ${PROJECT_NAME}
- ${CAUSE_BUILD_NUMBER}: equivalent of ${BUILD_NUMBER}
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Summary | Support ${CAUSE_URL} also in addition to ${CAUSE} | Support ${CAUSE_BUILD_URL} also in addition to ${CAUSE} |
Component/s | token-macro-plugin [ 15832 ] | |
Assignee | David van Laatum [ davidvanlaatum ] | Alex Earl [ slide_o_mix ] |
Description |
Currently there is {{$\{CAUSE}}} that prints the upstream job that triggered this build. It would be nice to have a the details of the cause available in tokens also, especially the URL. Then the mail can contain a clickable link, which is quite convenient in some case then a build pipeline exists, where one want to get to the "main" job directly. Having these token available would be really nice: * {{$\{CAUSE_BUILD_URL}}}: equivalent of {{$\{CAUSE_BUILD_URL}}} * {{$\{CAUSE_PROJECT_NAME}}}: equivalent of {{$\{PROJECT_NAME}}} * {{$\{CAUSE_BUILD_NUMBER}}}: equivalent of {{$\{BUILD_NUMBER}}} |
Currently there is {{$\{CAUSE}}} that prints the upstream job that triggered this build. It would be nice to have a the details of the cause available in tokens also, especially the URL. Then the mail can contain a clickable link, which is quite convenient in some case then a build pipeline exists, where one want to get to the "main" job directly. Having these token available would be really nice: * {{$\{CAUSE_BUILD_URL}}}: equivalent of {{$\{BUILD_URL}}} * {{$\{CAUSE_PROJECT_NAME}}}: equivalent of {{$\{PROJECT_NAME}}} * {{$\{CAUSE_BUILD_NUMBER}}}: equivalent of {{$\{BUILD_NUMBER}}} |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Not sure what's the preferred way to handle this. Besides creating more variables, using the token-parameters approach might also work and scale nicer: