cosmetics
This commit is contained in:
parent
5322f81351
commit
06cdf7e690
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -18,11 +18,14 @@ pipeline {
|
|||||||
// https://stackoverflow.com/questions/52093926/jenkins-pipeline-send-email-at-user-input
|
// https://stackoverflow.com/questions/52093926/jenkins-pipeline-send-email-at-user-input
|
||||||
// https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail
|
// https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail
|
||||||
// Oder: http://{{jenkins_uri}}/blue/organizations/jenkins/${env.JOB_NAME - ohne /Branch}/detail/${env.BRANCH_NAME}/${env.BUILD_ID}/pipeline/${env.BUILD_ID}
|
// Oder: http://{{jenkins_uri}}/blue/organizations/jenkins/${env.JOB_NAME - ohne /Branch}/detail/${env.BRANCH_NAME}/${env.BUILD_ID}/pipeline/${env.BUILD_ID}
|
||||||
emailext to: 'devel@zwackl.de', subject: "[${env.JOB_NAME}] is waiting for your decision", body: "${env.BUILD_URL}/input/"
|
emailext
|
||||||
|
to: 'devel@zwackl.de',
|
||||||
|
subject: "[${env.JOB_NAME}] is waiting for your decision",
|
||||||
|
body: "${env.BUILD_URL}/input/"
|
||||||
userInput = input(
|
userInput = input(
|
||||||
id: 'approve_deploy_at_prod',
|
//id: 'approve_deploy_at_prod',
|
||||||
ok: 'Yepp, go on!',
|
message: "Do you want to deploy version ${PROD_TAG}@${env.deployment_name} in PROD?",
|
||||||
message: "Do you want to deploy version ${PROD_TAG}@${env.deployment_name} in PROD?"/*,
|
ok: 'Yepp, go on!'/*,
|
||||||
parameters: [
|
parameters: [
|
||||||
[
|
[
|
||||||
$class: 'BooleanParameterDefinition',
|
$class: 'BooleanParameterDefinition',
|
||||||
@ -34,11 +37,7 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
} catch(org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
|
} catch(org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
|
||||||
// input timed out
|
error "${e.toString()}: this job was either aborted or timed out."
|
||||||
error "Caught ${e.toString()}"
|
|
||||||
} catch(err) {
|
|
||||||
// manually aborted
|
|
||||||
echo "This job has been aborted"
|
|
||||||
}
|
}
|
||||||
/*if (userInput == true) {
|
/*if (userInput == true) {
|
||||||
// do something
|
// do something
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user