Restricting Cobertura trend graph to main branch?

53 views
Skip to first unread message

Dan Kegel

unread,
Aug 6, 2021, 2:27:33 AM8/6/21
to Jenkins Users
Hi!  I am using this line in my Jenkinsfile:

 cobertura autoUpdateHealth: true, autoUpdateStability: true, failNoReports: false, coberturaReportFile: '**/coverage-**.xml', failUnhealthy: true, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: true, enableNewApi: true, lineCoverageTargets: "80, 0, 10"

and I get a lovely coverage trend graph.  However, try builds (builds for merge requests) show up in the trendline, so it looks like coverage is bouncing all over the place.

I'm trying setting autoUpdateFoo to false when not on main branch, but I'm not sure it's doing what I expect.  Anyone have suggestions?

Thanks,

Dan


Ullrich Hafner

unread,
Aug 9, 2021, 11:11:06 AM8/9/21
to Jenkins Users
Do you build different branches in the same job?

--
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/328fc0ea-d032-43dc-9b42-9524160010f2n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages