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

Possibility to use environment variables or parameters

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • htmlpublisher-plugin
    • None
    • Jenkins 1.419
      HTML Publisher 0.6

    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

          mcrooney mcrooney added a comment -

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

          mcrooney mcrooney added a comment - sillekyatha , I'm not sure that ${BUILD_NUMBER} format is supported, can you try just $BUILD_NUMBER and report back?
          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.

          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.
          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

          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
          ashokkumarvillapuram Ashok Kumar added a comment -

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

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

          ashokkumarvillapuram : 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

          graphikcorp Gael BRESSON added a comment - - edited ashokkumarvillapuram : 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

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

            Dates

              Created:
              Updated:
              Resolved: