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

Allow Jenkins Environment Variables in the URL

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • plot-plugin
    • None

      It would be useful to be able to include a Jenkins environment variable in the url entered.

      The reason for this is that we use this url to link to a html report that contains further information. This report is part of the archive output of the build so we would like to be able to reference each report using the %BUILD_NUMBER% in the url.

      Full list of variables that could be specified at https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables

          [JENKINS-15844] Allow Jenkins Environment Variables in the URL

          Justin Wagner added a comment -

          This would be very handy, or in the least if the build numbers on the X axis were linked to the Build Page in question that would be very handy.

          Justin Wagner added a comment - This would be very handy, or in the least if the build numbers on the X axis were linked to the Build Page in question that would be very handy.

          In case of scripted Pipeline style job this works:

          plot(group: '...', title: '...',
              csvFileName: 'plot-....csv',
              csvSeries: [[file: '...', url: "${env.JOB_URL}%build%/"]], ...)
          

          Reinhold Füreder added a comment - In case of scripted Pipeline style job this works: plot(group: '...' , title: '...' , csvFileName: 'plot-....csv' , csvSeries: [[file: '...' , url: "${env.JOB_URL}%build%/" ]], ...)

            nidaley nidaley
            pspurr Paul Spurr
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: