From ad2f6768ed912765ca4f6438eb26df61626f893f Mon Sep 17 00:00:00 2001 From: Dominik Chilla Date: Sun, 12 Jul 2020 01:34:40 +0200 Subject: [PATCH] timeout 300s --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 37223a2..af13666 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,11 +14,9 @@ pipeline { script { def userInput try { - timeout(time: 15, unit: 'SECONDS') { - // TODO: e-mail notification + timeout(time: 300, unit: 'SECONDS') { // https://stackoverflow.com/questions/52093926/jenkins-pipeline-send-email-at-user-input // https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail - // Entweder: ${env.BUILD_URL} // 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}" userInput = input(