【发布时间】:2018-10-19 06:04:00
【问题描述】:
我有这个Jenkinsfile,我使用xUnit 插件。我想了解这个文件中使用的关键词:
node{
stage ('Checkout')
{
checkout scm
}
stage ('Build')
{
try {
sh '''
mvn clean -B org.jacoco:jacoco-maven-plugin:prepare-agent install
'''
} catch (err) {
// do nothing
} finally {
//step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
step([$class: 'XUnitBuilder', testTimeMargin: '3000', thresholdMode: 1,
thresholds: [
[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '1'],
[$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']],
tools: [
[$class: 'JUnitType', deleteOutputFiles: false, failIfNotNew: false, pattern: '**/target/surefire-reports/TEST-*.xml', skipNoTestFiles: true, stopProcessingIfError: false]]
])
}
}
}
SkippedThreshold 是什么意思?
failureNewThreshold 和 failureThreshold 和 unstableNewThreshold 和 unstableThreshold 有什么区别?
感谢您帮助我理解这一点,我找不到清晰的文档。希望这对其他人有帮助。
【问题讨论】:
标签: jenkins jenkins-plugins jenkins-pipeline xunit