Cor*_*ead 5 jenkins jenkins-plugins jenkins-pipeline
看起来对测试结果分析器的支持已从下面的jira问题添加到管道插件中.我无法弄清楚如何使用管道脚本实际执行插件.
https://issues.jenkins-ci.org/browse/JENKINS-30522
无论jira问题如何,我如何通过我的管道运行测试结果分析器?
小智 0
当您将测试报告添加到管道脚本时,它会自动运行。对于具有测试的作业(包括使用管道插件的作业),“测试结果分析器”按钮会立即显示。
例如,当使用像这样的标准“junit”报告插件时,它应该开箱即用:
stage('Unit tests') {
steps {
sh 'unit-tests.sh'
}
post {
always {
junit 'path/to/report.xml'
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1954 次 |
| 最近记录: |