Jenkins Pipeline 当job结果是Unstable时不retry的方法 jenkinspipelineretryunstable
程序员文章站
2022-03-04 21:29:22
...
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 } }