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

Possibility to use environment variables or parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: htmlpublisher-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.419
      HTML Publisher 0.6
    • Similar Issues:

      Description

      Add the possibility to use environment variables ($BUILD_NUMBER, ...) or parameters ($PARAMETER1, ...) in fields "HTML directory to archive", "Index page[s]" or "Report title".

        Attachments

          Activity

          Hide
          sillekyatha Sille Kyatha added a comment - - edited

          I'm still unable to use environment variables, I'm using HTML plugin version 1.11 and Jenkins version 2.7.1

          [htmlpublisher] Archiving HTML reports...
          [htmlpublisher] Archiving at PROJECT level C:\Jenkins\workspace\Colleague_API\Colleague_Platform_API to /var/lib/jenkins/jobs/SunilKumar_POC/jobs/Colleague_API/jobs/CP_API_JUNIT_TEST/htmlreports/HTML_Report_${BUILD_NUMBER}

          Show
          sillekyatha Sille Kyatha added a comment - - edited I'm still unable to use environment variables, I'm using HTML plugin version 1.11 and Jenkins version 2.7.1 [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at PROJECT level C:\Jenkins\workspace\Colleague_API\Colleague_Platform_API to /var/lib/jenkins/jobs/SunilKumar_POC/jobs/Colleague_API/jobs/CP_API_JUNIT_TEST/htmlreports/HTML_Report_${BUILD_NUMBER}
          Hide
          mcrooney mcrooney added a comment -

          Sille Kyatha, I'm not sure that ${BUILD_NUMBER} format is supported, can you try just $BUILD_NUMBER and report back?

          Show
          mcrooney mcrooney added a comment - Sille Kyatha , I'm not sure that ${BUILD_NUMBER} format is supported, can you try just $BUILD_NUMBER and report back?
          Hide
          nareshg4 Naresh G added a comment -

          Hi, am getting a similar issue when using the multi configuration job.
          I want to publish set of html files which are created as part of multi config job.
          I am trying to consolidate the files and display them in my jobs.
          What i can do is hard code the file names to get it displayed but what i want to achieve is publish all html files as part the job using a variable.

          Show
          nareshg4 Naresh G added a comment - Hi, am getting a similar issue when using the multi configuration job. I want to publish set of html files which are created as part of multi config job. I am trying to consolidate the files and display them in my jobs. What i can do is hard code the file names to get it displayed but what i want to achieve is publish all html files as part the job using a variable.
          Hide
          ashokkumarvillapuram Ashok Kumar added a comment -

          I Still can't able to get the environmental variable in the email (HTML)section of the jenkins job

          Show
          ashokkumarvillapuram Ashok Kumar added a comment - I Still can't able to get the environmental variable in the email (HTML)section of the jenkins job
          Hide
          ashokkumarvillapuram Ashok Kumar added a comment -

          StillĀ $BUILD_NUMBER is not supported please tell me the changes to be made for this particular concern.

          Show
          ashokkumarvillapuram Ashok Kumar added a comment - StillĀ $BUILD_NUMBER is not supported please tell me the changes to be made for this particular concern.

            People

            • Assignee:
              mcrooney mcrooney
              Reporter:
              yrsone yrsone
            • Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: