Questions tagged «groovy»

4
成功清除Jenkins Pipeline工作的最干净方法?
我有一个可以创建文件的作业,除非馈入它的值之一与旧值匹配。是什么在詹金斯最清晰的方式中止或退出工作,没有它是FAILED?它退出是正确的行为,所以我要标记构建SUCCESS。 最终将以if语句结束。 stage ('Check value') { if( $VALUE1 == $VALUE2 ) { //if they do match exit as a success, else continue with the rest of the job } } 我不想抛出错误代码,除非它可以以某种方式转化为被标记为成功构建的代码。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.