2016-07-28 36 views

回答

0

如果您使用构建流程插件(或pipleline),那么此解决方案将为您工作。如下

构建流程DSL脚本示例

def buildInstance 
//Ingore the failure here to avoid flow stop 
ignore(FAILURE){ 
    buildInstance = build("normal_git_job") 
} 

//Something goes wrong, try build another job 
if (buildInstance.result.equals(FAILURE)){ 
    build("special_git_job") 
} 
相关问题