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

FILE token does not evaluate a path that contains an environment variable


    • Similar Issues:


      When I try the following in the Default Content of the Editable E-mail Notification:


      The contents of the file specified by the path do not get displayed. I have MY_FILE_PATH defined as a property in a properties file that is injected into the environment in the "Prepare an environment for the run" option where the full path of the property file is specified.

      The property file defines: MY_FILE_PATH=custom_info.txt

      where "custom_info.txt" is a file in the workspace of the job that contains some text that I would like to display as part of the e-mail.

      What is strange is that when I receive the e-mail, this appears:


      So the email-ext plugin evaluates the environment variable MY_FILE_PATH, but the FILE token does not evaluate it as a path.

      The ability to have the FILE token evaluate a path that contains an environment variable would be useful for displaying different information depending on which file path is stored in the environment variable.

      I am running Jenkins 1.480.2.



          trincodog Kavita Tiwari created issue -
          slide_o_mix Alex Earl made changes -
          Field Original Value New Value
          Assignee Alex Earl [ slide_o_mix ]
          slide_o_mix Alex Earl made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 147540 ] JNJira + In-Review [ 192467 ]


            • Assignee:
              slide_o_mix Alex Earl
              trincodog Kavita Tiwari
            • Votes:
              0 Vote for this issue
              6 Start watching this issue


              • Created: