Add CI skipping

This commit is contained in:
Telesphoreo 2023-03-16 00:30:45 -05:00
parent 494829e797
commit 661bd58103
1 changed files with 14 additions and 13 deletions

27
Jenkinsfile vendored
View File

@ -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.17.1"
}
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 {