From e1b09d634bbb8afc19c8e24bb782fd63f7fe116f Mon Sep 17 00:00:00 2001 From: Dominik Chilla Date: Sat, 11 Jul 2020 23:59:56 +0200 Subject: [PATCH] exception handling take 5 --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e36bc4b..9540b55 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { steps { script { def userInput - catchError(buildResult: 'SUCCESS', stageResult: 'ABORTED') { + //catchError(buildResult: 'SUCCESS', stageResult: 'ABORTED') { try { timeout(time: 15, unit: 'SECONDS') { userInput = input(id: 'Proceed1', message: 'Was this successful?', parameters: [[ @@ -23,7 +23,7 @@ pipeline { } catch(err) { // input false echo "This job has been aborted" } - } + //} if (userInput == true) { // do something echo "this was successful"