问题
I would like to use the "Publish TAP results" plugin on Jenkins 2.0 pipeline.
I'm not sure of the equivalent Groovy script for the same. Can someone help?
回答1:
This support was added to the TAP plugin 2.0 (2016-08-20).
Usage:
step([$class: "TapPublisher", testResults: "**/target/tap-unit.log"])
https://issues.jenkins-ci.org/browse/JENKINS-34000
回答2:
Currently there is no support for the pipeline, see https://issues.jenkins-ci.org/browse/JENKINS-34000.
But you can create on GitHub a pull request implementing that feature.
来源:https://stackoverflow.com/questions/37405539/how-do-i-use-the-publish-tap-results-plugin-on-jenkins-2-0-pipeline