From 8274f529236ad05aeddc9d5ea63fcdac051d1acd Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Thu, 16 Mar 2023 00:21:18 -0500 Subject: [PATCH] Allow CI skipping --- Jenkinsfile | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6af6046..a2132b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { stages { stage('applyPatches') { steps { + scmSkip(deleteBuild: true) withGradle { sh './gradlew applyPatches --no-daemon --refresh-dependencies' } @@ -30,19 +31,19 @@ pipeline { branch "1.18.2" } steps { - script { - 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 {