Skip to content

Instantly share code, notes, and snippets.

@paulmthiebauth
Created February 14, 2018 23:02
Show Gist options
  • Select an option

  • Save paulmthiebauth/9521d4ca7a16e03ceb2214e6d570acf8 to your computer and use it in GitHub Desktop.

Select an option

Save paulmthiebauth/9521d4ca7a16e03ceb2214e6d570acf8 to your computer and use it in GitHub Desktop.
Jenkins Rcov Publisher MetricTarget Syntax
#The snippet generator for RcovPublisher in Jenkins is incomplete.
#When you add in metric values for desired coverage percentages, the generator doesnt provide the syntax.
#Here it is served up on a silver platter.
step([$class: 'RcovPublisher', reportDir: 'coverage/rcov', targets: [[$class: 'hudson.plugins.rubyMetrics.rcov.model.MetricTarget', metric: 'TOTAL_COVERAGE', healthy: 87, unhealthy: 86, unstable:85], [$class: 'hudson.plugins.rubyMetrics.rcov.model.MetricTarget', metric: 'CODE_COVERAGE', healthy: 87, unhealthy: 86, unstable: 85]]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment