2
我有詹金斯腳本,它使用的詹金斯流水線作業:Jenkinsfile如何捕捉多個異常並行分支
try{
parallel branch1: {
//some function that may throw exception
}, branch2: {
//some function that may throw exception
}, branch3: {
//some function that may throw exception
}
}catch(Exception e){
//gather the error information together (if there 1 error then just it, if there are 2 errors then concatenate 2 errors together, etc) and print it.
}
我怎樣才能做到這一點?或者我不能這樣做?