From c0a8f2c8deff981ec2368b8c051030cd941a7210 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Mon, 6 Mar 2023 01:02:55 -0600 Subject: [PATCH] ? --- Jenkinsfile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 88f6e1e..1d3d43e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,17 +30,19 @@ pipeline { branch "1.19.3" } steps { - try { - withCredentials([usernamePassword(credentialsId: 'scissors-ci', passwordVariable: 'scissorsPassword', usernameVariable: 'scissorsUser')]) { - withGradle { - sh "./gradlew :Scissors-API:publish --no-daemon" - } - } - true - } catch (_) { - false + script { + try { + withCredentials([usernamePassword(credentialsId: 'scissors-ci', passwordVariable: 'scissorsPassword', usernameVariable: 'scissorsUser')]) { + withGradle { + sh "./gradlew :Scissors-API:publish --no-daemon" + } + } + true + } catch (_) { + false + } } - } + } } } post {