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

alwaysLinkToLastBuild not linking to last job result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Jenkins ver. 2.60.3
      HTML Publisher Plugin 1.14

      I`m using HTML Publisher Plugin on  kubernetes cluster slave in pipeline job

      stage('Publish HTML report') {
          publishHTML (target: [
                  allowMissing: false,
                  alwaysLinkToLastBuild: true,
                  keepAll: true,
                  reportDir: 'e2e-system-tests/target',
                  reportFiles: 'index.html',
                  reportName: "HTML Report"
                ])
      }

      When build fail i get folliwing result

       

      INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:05 min
      [INFO] Finished at: 2017-09-07T14:39:59+00:00
      [INFO] Final Memory: 38M/836M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (integration-test) on project e2e-system-tests: There are test failures.
      [ERROR] 
      [ERROR] Please refer to /home/jenkins/workspace/E2E-TEST-backend-userActivationErrorHandling/e2e-system-tests/target/surefire-reports for the individual test results.
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Publish HTML report)
      [Pipeline] publishHTML
      [htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at BUILD level /home/jenkins/workspace/E2E-TEST-backend-userActivationErrorHandling/e2e-system-tests/target to /var/lib/jenkins/jobs/E2E-TEST-backend-userActivationErrorHandling/builds/10/htmlreports/HTML_Report
      [Pipeline] }
       
      

       

      When i go directly to job result
      http://jenkins:8080/job/E2E-TEST-backend-userActivationErrorHandling/10/console
      I see HTML Report but link also should be visible on the "main page" for job under url

      http://jenkins:8080/job/E2E-TEST-backend-userActivationErrorHandling/ but for some reason it`s not visible

      What can be a reason of this isssue ?

      Regards,

      Piotr

       

            r2b2_nz Richard Bywater
            pchmielnik Piotr Chmielnik
            Votes:
            16 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated: