Answer by hchu-1 · Jun 19, 2020 at 06:37 PM
This solution could be implemented in two steps:
The first step involves making your csv report files accessible on the job details page. Please refer to our" target="_blank">https://docs.cloudbees.com/docs/cloudbees-flow/latest/automation-platform/help-jobdetails#_summary_section_at_the_top_of_the_page">our documentation for more details and instructions on how to do this:
Create a link to any file: To add a link, run a command in any job’s job step using this format (this works for both local [disconnected] and non-local workspaces):
ectool setProperty "/myJobStep/report-urls/<myReportName>" "/commander/jobSteps/<jobStepId>/<artifactDirectoryName>/<file-path>"
This should create a link on the Job Details summary section where you can take down your files.
The second step involves displaying this same link on the Pipeline Stage Summary screen. Our" target="_blank">https://docs.cloudbees.com/docs/cloudbees-flow/latest/pipelines/pipelinestagesum#_linking_to_stage_summary_information">Our documentation contains an example on how to do this. When you set the property, you should pass in the URL used in the previous step.
Create a procedure and the underlying steps with commands like the following:
ectool setProperty "/myPipelineStageRuntime/ec_summary/report" --value "<html><a href=\"https://www.myreportserver.com\" target=\"_blank\">Global Report</a></html>"
Electric Cloud powers Continuous Delivery, helping organizations developing deliver better software faster by automating and accelerating build, test, and deployment processes at scale. Industry leaders like Qualcomm, SpaceX, Cisco, GE, Gap, and E*TRADE use Electric Cloud solutions to boost DevOps productivity and Agile throughput.