I'm using Clover plugin (https://wiki.jenkins-ci.org/display/JENKINS/Clover+Plugin) to publish my coverage metrics.
Also, I had configured "coverage target metrics" as shown herE:
Now that I've started to use Jenkins 2.0 Pipelines plugin, How can I specify these target metrics thro Groovy script (so that build fails if coverage is not met.)