aaa job调用bbb job,bbb job设置成unstable
retry(2){ try{ def result=build job: "bbb" echo result }catch(err){ if(!err.getMessage().contains("UNSTABLE")) throw err } }
aaa job调用bbb job,bbb job设置成unstable
retry(2){ try{ def result=build job: "bbb" echo result }catch(err){ if(!err.getMessage().contains("UNSTABLE")) throw err } }