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

Support expanding environment variables

    Details

    • Similar Issues:

      Description

      Add support for expanding environment variables - when injecting variables to build process using "inject environment variables to build process" option I'd like to be able to use them in "Cobertura xml report pattern" field i.e.: $PROJECT_HOME/target/cobertura-coverage.xml. This feature is supported by most of other report plugins (i.e. JUnit reporter plugin).

        Attachments

          Activity

          Hide
          janvrany Jan Vrany added a comment - - edited

          I second that. My use case is following: I have a job that does incremental builds, i.e., multiple builds share the same workspace
          (which is cleanded every night to make sure it builds from scratch).
          The Cobertura results .xml files (as well as Junit result .xml files) has Jenkins BUILD_NUMBER in it. I need to use pattern like

          reports/*mercurial*build${BUILD_NUMBER}*Coverage.xml

          to match coverage reports.

          Show
          janvrany Jan Vrany added a comment - - edited I second that. My use case is following: I have a job that does incremental builds, i.e., multiple builds share the same workspace (which is cleanded every night to make sure it builds from scratch). The Cobertura results .xml files (as well as Junit result .xml files) has Jenkins BUILD_NUMBER in it. I need to use pattern like reports/*mercurial*build${BUILD_NUMBER}*Coverage.xml to match coverage reports.
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Last two releases (separated by over a year) were by Oliver Gondža so looks like the maintainer

          Show
          stephenconnolly Stephen Connolly added a comment - Last two releases (separated by over a year) were by Oliver Gondža so looks like the maintainer
          Hide
          alexc Alexandre Charvier added a comment -

          Hello,

          Are there any news on this topic? Will it be possible to use environment variables for junit reports configuration (XMLs location)

          Alex.

          Show
          alexc Alexandre Charvier added a comment - Hello, Are there any news on this topic? Will it be possible to use environment variables for junit reports configuration (XMLs location) Alex.
          Hide
          spamme spam me added a comment -

          I have the same issue, I would like to use environment variables for the report path, but it doesn't work. 

          Show
          spamme spam me added a comment - I have the same issue, I would like to use environment variables for the report path, but it doesn't work. 

            People

            • Assignee:
              Unassigned
              Reporter:
              bartoszkaczorek Bartosz Kaczorek
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: