aaa job calls bbb job, bbb job is set to unstable
retry(2){ try{ def result=build job: "bbb" echo result }catch(err){ if(!err.getMessage().contains("UNSTABLE")) throw err } }
aaa job calls bbb job, bbb job is set to unstable
retry(2){ try{ def result=build job: "bbb" echo result }catch(err){ if(!err.getMessage().contains("UNSTABLE")) throw err } }