Вы можете сделать шаг на своем конвейере, как показано ниже. Они не могут одобрить его по электронной почте, но вы можете отправить URL-адрес сборки задания по электронной почте:
stage("Stage with input") {
steps {
def userInput = false
script {
// build your custom email message here
emailext (
subject: "Job: ${env.JOB_NAME} - ${env.BUILD_NUMBER}",
body: """Job ${env.JOB_NAME} [${env.BUILD_URL}]""",
recipientProviders: "someone@somewhere.com"
)
def userInput = input(id: 'Proceed1', message: 'Promote build?', parameters: [[$class: 'BooleanParameterDefinition', defaultValue: true, description: '', name: 'Please confirm you agree with this']])
echo 'userInput: ' + userInput
if(userInput == true) {
// do action
} else {
// not do action
echo "Action was aborted."
}
}
}
}
Проверьте здесь email ext plugin. И здесь шаг ввода.