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

Possibility to use environment variables or parameters

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • htmlpublisher-plugin
    • None
    • Jenkins 1.419
      HTML Publisher 0.6

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

          [JENKINS-10273] Possibility to use environment variables or parameters

          yrsone created issue -

          mcrooney added a comment -

          This should be fixed in HTML Publisher 1.0, which was just released, so once it appears in your updates, please give it a shot and let me know!

          There are two caveats: it doesn't know about axes from multi-configuration projects (I filed https://issues.jenkins-ci.org/browse/JENKINS-13738 for this), and it doesn't work in the Report Title for now, as that's a little trickier due to how the titles are displayed. Please file a new bug if that's important.

          mcrooney added a comment - This should be fixed in HTML Publisher 1.0, which was just released, so once it appears in your updates, please give it a shot and let me know! There are two caveats: it doesn't know about axes from multi-configuration projects (I filed https://issues.jenkins-ci.org/browse/JENKINS-13738 for this), and it doesn't work in the Report Title for now, as that's a little trickier due to how the titles are displayed. Please file a new bug if that's important.
          mcrooney made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Anton Ilyin added a comment -

          I just trying to use env. var. but fail.
          I get
          "[htmlpublisher] Archiving HTML reports...
          [htmlpublisher] Archiving at BUILD level d:\hudson\jobs\WebStudio_SmokeTest\workspace\TESTS\trunk\org.openl.rules.integration.tests\TestReports%BUILD_ID%(%BUILD_NUMBER%) to d:\hudson\jobs\WebStudio_SmokeTest\builds\2012-07-04_17-45-10\htmlreports\Smoke_Test_Results
          ERROR: Specified HTML directory 'd:\hudson\jobs\WebStudio_SmokeTest\workspace\TESTS\trunk\org.openl.rules.integration.tests\TestReports%BUILD_ID%(%BUILD_NUMBER%)' does not exist.
          "

          Anton Ilyin added a comment - I just trying to use env. var. but fail. I get " [htmlpublisher] Archiving HTML reports... [htmlpublisher] Archiving at BUILD level d:\hudson\jobs\WebStudio_SmokeTest\workspace\TESTS\trunk\org.openl.rules.integration.tests\TestReports%BUILD_ID%(%BUILD_NUMBER%) to d:\hudson\jobs\WebStudio_SmokeTest\builds\2012-07-04_17-45-10\htmlreports\Smoke_Test_Results ERROR: Specified HTML directory 'd:\hudson\jobs\WebStudio_SmokeTest\workspace\TESTS\trunk\org.openl.rules.integration.tests\TestReports%BUILD_ID%(%BUILD_NUMBER%)' does not exist. "
          Anton Ilyin made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          mcrooney added a comment -

          The correct syntax would be $VARIABLE as used elsewhere, as opposed to %VARIABLE%. I'll update the description.

          mcrooney added a comment - The correct syntax would be $VARIABLE as used elsewhere, as opposed to %VARIABLE%. I'll update the description.
          mcrooney made changes -
          Description Original: Add the possibility to use environment variables (%BUILD_NUMBER%, ...) or parameters (%PARAMETER1%, ...) in fields "HTML directory to archive", "Index page[s]" or "Report title". New: Add the possibility to use environment variables ($BUILD_NUMBER, ...) or parameters ($PARAMETER1, ...) in fields "HTML directory to archive", "Index page[s]" or "Report title".

          Anton Ilyin added a comment -

          oK, thnaks a lot.

          Anton Ilyin added a comment - oK, thnaks a lot.

          mcrooney added a comment -

          I don't believe this issue should still be open but if anyone is experiencing problems, please let me know, thanks!

          mcrooney added a comment - I don't believe this issue should still be open but if anyone is experiencing problems, please let me know, thanks!
          mcrooney made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: