Update Jenkinsfile

This commit is contained in:
Telesphoreo 2023-03-15 16:06:03 -05:00 committed by GitHub
parent f21a7fb408
commit b75232882c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
Jenkinsfile vendored
View File

@ -30,15 +30,21 @@ pipeline {
branch "1.17.1" branch "1.17.1"
} }
steps { steps {
withCredentials([usernamePassword(credentialsId: '8150559b-ec1d-41bd-a576-aa668a52c1ba', passwordVariable: 'scissorsPassword', usernameVariable: 'scissorsUser')]) { script {
withGradle { try {
sh "./gradlew :Scissors-API:publish --no-daemon" withCredentials([usernamePassword(credentialsId: 'scissors-ci', passwordVariable: 'scissorsPassword', usernameVariable: 'scissorsUser')]) {
} withGradle {
} sh "./gradlew :Scissors-API:publish --no-daemon"
} }
}
true
} catch (_) {
false
}
}
}
} }
} } {
post {
always { always {
archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true
junit 'Scissors-Server/build/test-results/test/*.xml' junit 'Scissors-Server/build/test-results/test/*.xml'
@ -46,4 +52,4 @@ pipeline {
cleanWs() cleanWs()
} }
} }
} }