标签: jenkins jenkins-pipeline
我有一个詹金斯流水线,包括10个不同阶段和2个后期阶段的成功和失败:
post { success { echo 'Build was successful and passed the tests' } failure { echo '$FAILED_STAGE Build failed' } }
如果管道失败,我想发送通知,但我也想知道管道在哪个阶段失败。有没有办法在失败后进入失败阶段?