Failsafe test reports for my Jenkins plugin are ignored on ci.jenkins.io

8 views
Skip to first unread message

Chris Kilding

unread,
May 14, 2019, 1:42:14 PM5/14/19
to jenkin...@googlegroups.com
The standard ‘buildPlugin()’ Jenkinsfile directive appears to capture Surefire test reports, but not Failsafe test reports. This means that failing integration tests in my plugin are (a) unreported and (b) don’t break the build. This might be happening to other plugins too.


I’ve worked around it by saving the Failsafe reports to the Surefire directory but this is extremely fragile: if I have an integration test class with the same name and package as a unit test class (which could happen if integration tests are stored in a different test source directory), then the report for one could overwrite the other.

Could someone confirm whether this is indeed a limitation in the current buildPlugin.groovy script or whether there is a different (robust) way to pick up Failsafe reports on ci.jenkins.io?

Regards

Chris

Ullrich Hafner

unread,
May 15, 2019, 4:39:13 AM5/15/19
to Jenkins Developers
I simply copied the buildPlugin step content into my JenkinsFile and modified it accordingly. This was also the only way to enable the warnings next generation plugin and some other tools (like coverage and pitest). 

Examples:


-- 
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/448e67fa-aef8-48bd-9ce7-cdbf7a7d5b7f%40www.fastmail.com.
For more options, visit https://groups.google.com/d/optout.

Robert Sandell

unread,
May 15, 2019, 4:54:55 AM5/15/19
to jenkin...@googlegroups.com
That repository is open to pull requests ;)

/B


For more options, visit https://groups.google.com/d/optout.


--
Robert Sandell
Software Engineer
CloudBees, Inc.
CloudBees-Logo.png
Twitter: robert_sandell

Chris Kilding

unread,
May 15, 2019, 6:21:21 AM5/15/19
to jenkin...@googlegroups.com
One pull request coming up...


I have a couple of questions about it so I’ve marked it as a draft PR and posted them underneath.

Chris
Reply all
Reply to author
Forward
0 new messages