HTML report between different jobs ??

37 views
Skip to first unread message

Albert Shamsiyan

unread,
Dec 11, 2016, 5:55:31 AM12/11/16
to Jenkins Users
I have multiple deployment jobs which executes the same downstream testing job. 
I would like to attach the HTML report generated by the Testing job to the build report of the upstream deployment job. Is it possible ? How ? 

Example: 

Deploy_Dev -> AutoamtedTest  (Environemt=Dev)
Deploy_QA -> AutoamtedTest   (Environemt=Qa)
Deploy_PQA -> AutoamtedTest (Environemt=PQA)

in the example above, AutmatedTest build report will show the HTML report per each build, I would like to be able attaching this report to the upstream build report as well .... 

Note: All jobs using the same master, yet, not necessary they will shall be executed in the same slave ..  

THX.  

Daniel Beck

unread,
Dec 11, 2016, 11:34:12 AM12/11/16
to jenkins...@googlegroups.com
If you use the Parameterized Trigger plugin, you could use the build step it provides, which allows waiting for the downstream job to finish.

Then just configure downstream to archive the report as artifacts, copy its artifacts (Copy Artifacts Plugin, or Jenkins HTTP API) and create an HTML report in the upstream build.

Of course a side effect is that the deploy job won't actually finish until the downstream job is finished.
> --
> 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/1b2d6ae8-75e6-4c28-8d4e-4feadb30ca87%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Albert Shamsiyan

unread,
Dec 11, 2016, 11:50:33 AM12/11/16
to Jenkins Users, m...@beckweb.net
Daniel,

Since both Deploy AND Test are managed by the same master, any way to configure the Test to "place" the html report in the Deploy job directory ??? 

Daniel Beck

unread,
Dec 11, 2016, 11:53:46 AM12/11/16
to Albert Shamsiyan, Jenkins Users

> On 11.12.2016, at 17:50, Albert Shamsiyan <albert.s...@gmail.com> wrote:
>
> managed by the same master, any way to configure the Test to "place" the html report in the Deploy job directory ???

If you enjoy implementing a 'worst practice', sure. Of course this will make it much more difficult to grow your Jenkins (both security and scalability suffer), and some plugins (like Compress Artifacts Plugin) will simply not be compatible with this approach.

Albert Shamsiyan

unread,
Dec 11, 2016, 12:00:25 PM12/11/16
to Jenkins Users, albert.s...@gmail.com, m...@beckweb.net
not that i enjoy heart my self, yet, using the default value in the html publish widget (on testing job) - i can see the following log at very button: 
[htmlpublisher] Archiving at BUILD level D:\JenkinsSlave\workspace\My_Test_job to /local/apps/My_Name/.jenkins/jobs/My_Test_job/builds/383/htmlreports/HTML_Report

I wonder if I can execute simple shell script to copy file from:
/local/apps/My_Name/.jenkins/jobs/My_Test_job/builds/383/htmlreports/HTML_Report
To: 
/local/apps/My_Name/.jenkins/jobs/My_Deply_job/builds

???
Reply all
Reply to author
Forward
0 new messages