您不能这样做吗,无论您从输入中选择什么,它都会变成蓝色/绿色,然后您也可以根据它来运行部署?
def deployToProduction = truetry{ input 'Deploy to Production'}catch(e){ deployToProduction = false}if(deployToProduction){ println "Deploying to production"}
您不能这样做吗,无论您从输入中选择什么,它都会变成蓝色/绿色,然后您也可以根据它来运行部署?
def deployToProduction = truetry{ input 'Deploy to Production'}catch(e){ deployToProduction = false}if(deployToProduction){ println "Deploying to production"}