12345678910111213141516171819 |
- pipeline {
- agent any
- stages {
- stage ('Build') {
- when {
- expression { env.BRANCH_NAME == '3.x' || env.BRANCH_NAME == '3.x-unstable' }
- }
- steps {
- sh "rm -rf build/libs/"
- sh "chmod +x gradlew"
- sh "./gradlew clean --stacktrace"
- sh "./gradlew build publish --refresh-dependencies --stacktrace"
- archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
- }
- }
- }
- }
|