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
          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.
          Hide
          graphikcorp Gael BRESSON added a comment - - edited

          Ashok Kumar : use the following to make it works : ${BUILD_NUMBER}
          I just tried and that works fine with the following version : Jenkins : 2.150.1 / HTML Publisher : 1.18

          Show
          graphikcorp Gael BRESSON added a comment - - edited Ashok Kumar : use the following to make it works : ${BUILD_NUMBER} I just tried and that works fine with the following version : Jenkins : 2.150.1 / HTML Publisher : 1.18

            People

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

              Dates

              • Created:
                Updated:
                Resolved: