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

HTML Publisher does not allow environment variables in fields

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Jenkins 2.46.3
      htmlpublisher 1.13
      Windows Server 2012 R2 64-bit
      Java(TM) SE Runtime Environment 1.8.0_66-b18

      When trying to use a parameter or an environment variable in the publisher, the value is taken literally instead of getting evaluated.

      I try using a parameter in the report name and the variable was not evaluated:

      Jenkins Console Log:

      [htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at PROJECT level C:\Temp\TN-alpha_it\coverage-alpha to C:\PSI-APPS\Jenkins\jobs\DEV\jobs\it\jobs\tn-app_it\htmlreports\OpenCover_-_Code_Coverage_-_${INSTANCE}

       

            r2b2_nz Richard Bywater
            hsantana29 Hector Santana
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: