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

[Email-Ext] Not able to use a parameter that i define in the Job

      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

          Doron Shai added a comment -

          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

          Doron Shai added a comment - 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

            slide_o_mix Alex Earl
            doronshai Doron Shai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: