mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-10-31 20:27:10 +00:00
Allow CI skipping
This commit is contained in:
parent
f3b3ef9f03
commit
8274f52923
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user