mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-12-30 19:37:38 +00:00
Update Jenkinsfile (#100)
This commit is contained in:
parent
1ce9a71b1e
commit
60ef55e21e
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -6,7 +6,6 @@ pipeline {
|
||||
stages {
|
||||
stage('applyPatches') {
|
||||
steps {
|
||||
scmSkip(deleteBuild: true)
|
||||
withGradle {
|
||||
sh './gradlew applyPatches --no-daemon --refresh-dependencies'
|
||||
}
|
||||
@ -26,25 +25,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('publish') {
|
||||
when {
|
||||
branch "1.19.3"
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
try {
|
||||
withCredentials([usernamePassword(credentialsId: 'scissors-ci', passwordVariable: 'scissorsPassword', usernameVariable: 'scissorsUser')]) {
|
||||
withGradle {
|
||||
sh "./gradlew :Scissors-API:publish --no-daemon"
|
||||
}
|
||||
}
|
||||
true
|
||||
} catch (_) {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
@ -54,4 +34,4 @@ pipeline {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user