我有一系列的阶段,执行快速检查。即使有失败,我也要把它们全部执行。例如:
stage('one') {
node {
sh 'exit 0'
}
}
stage('two') {
node {
sh 'exit 1' // failure
}
}
stage('three') {
node {
sh 'exit 0'
}
}
阶段 two失败,因此默认情况下不执行阶段 three。
通常这是 parallel的工作,但是我想在舞台视图中显示它们。在下面的模拟中:
two失败,所以 three不能运行。two失败并以这种方式显示,但是 three仍然运行。真正的詹金斯可能会显示整个建造 # 6略带红色,这当然是罚款。