-
Bug
-
Resolution: Not A Defect
-
Major
-
Win Server 2008 R2, Jenkins 1.7
Hello,
At the end of my Job that I set a post build step that will send a mail.
This mail format is HTML and I am trying to use few variables.
I am able to use Tokens such: $PROJECT_NAME, $BUILD_NUMBER, $BUILD_STATUS but when I want to use a System Variable then i get nothing. (This variable is being set at the beginning of the Job using the "This build is parameterized"
The system Variable name is JobBranch and I already tried to call it in all the ways i know:
${ENV, JobBranch}
${ENV, %JobBranch%}
%JobBranch%
$JobBranch
for all of these i get nothing (It is actually print this text as it is ...)
What i am doing wrong?
Doron
[JENKINS-16058] [Email-Ext] Not able to use a parameter that i define in the Job
Fix Version/s | New: current [ 10162 ] | |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 146860 ] | New: JNJira + In-Review [ 206291 ] |
Managed to find the answer after some more digging in the Net.
the way to use this Token is ${ENV,var="variable_name"}
I found the answer Here