Blank HTML report in Jenkin's left hand side bar for Performance Center Reports

247 views
Skip to first unread message

Mukesh Dhingra

unread,
Sep 3, 2018, 9:43:39 AM9/3/18
to Jenkins Users

Hi

 

I am using a pipeline to connect Performance center from Jenkins. I am able to run the tests successfully, however unable to view the report on left hand side console in Jenkins. Its appearing blank. Please suggest if someone has any clue about this.

 

Jenkin version:- 2.107.3

Microfocus Automation Plugin: 5.3

 

Pipeline Job:-

stage('RunPCTESTS'){ // The stage name

 

    node('master'){ //  The name of the node in which to run the test.

    def perfResultPath

    def currentBuildNo = env.BUILD_NUMBER

    println currentBuildNo

   

    pcBuild HTTPSProtocol: false, addRunToTrendReport: 'NO_TREND', almDomain: 'DEFAULT', almPassword: 'xxxxx', almProject: 'Test', almUserName: 'temp1', autoTestInstanceID: 'MANUAL', description: '', pcServerName: 'nclpwnqwebxxxxx.cmp.aon.net', postRunAction: 'COLLATE_AND_ANALYZE', proxyOutPassword: '', proxyOutURL: '', proxyOutUser: '', serverAndPort: 'http://localhost:8080', statusBySLA: false, testId: '46', testInstanceId: '24', timeslotDurationHours: '0', timeslotDurationMinutes: '30', trendReportId: '', vudsMode: false

 

          perfResultPath= 'C:\\Program Files (x86)\\Jenkins\\jobs\\RAF_PT_Pipeline\\builds\\'+currentBuildNo+'\\archive\\performanceTestsReports\\pcRun'

     

println perfResultPath

 

publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: '', reportFiles: perfResultPath+'\\Report.html', reportName: 'Performance Report', reportTitles: 'HTML Performance Report'])

                               

                                               

    }

}

Reinhold Füreder

unread,
Sep 5, 2018, 1:25:06 AM9/5/18
to jenkins...@googlegroups.com

Hi Mukesh,

 

I guess according to e.g. https://jenkins.io/doc/pipeline/steps/htmlpublisher/

  • “reportDir” should not be an empty string and be relative to workspace
  • “reportFiles” should not be an absolute path, but relative to “reportDir”

 

So maybe try this:

publishHTML([…, reportDir: 'archive/performanceTestsReports/pcRun ', reportFiles: 'Report.html', …])

 

HTH Reinhold

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b9315515-45cd-49b4-80e2-208a958f1573%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages