Slide 60
Slide 60 text
Input Approval & Checkpoints
60
checkpoint 'testing-complete'
stage('approve') {
mail body: "Approval needed for '${env.JOB_NAME}' at '${env.BUILD_URL}'",
subject: "${env.JOB_NAME} Approval",
to: "ops@yourcompanyhere.com"
timeout(time: 7, unit: 'DAYS') {
input message: 'Do you want to deploy?', parameters: [string(defaultValue: '',
description: 'Provide any comments regarding decision.', name: 'Comments')], submitter:
'ops'
}
}