我有一个Jenkins multibranch管道,我正在使用Jenkins文件进行CI流程。现在在我的Jenkinsfile中,我想让在Jenkins Blueocean UI中停止管道的用户。
我用它试过了:
try {
inputsubmitter = input message: 'Click Proceed to start Release for Branch ' + "${env.BRANCH_NAME}", submitter: 'jenkinusers', submitterParameter: 'submitters'
echo "${inputsubmitter}"
}
catch(Exception ex) {
def user = ex.getCauses()[0].getUser()
echo "Aborted by ${user} hello"
throw ex
}
但结果是:
系统中止
如何在这种情况下吸引用户?