aboutsummaryrefslogtreecommitdiff
path: root/JenkinsD
blob: a80d195b3b3379da0593affb0a3357e5cc076510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pipeline {
   agent any
   stages {

      stage ('Build') {
         when {
            expression { env.BRANCH_NAME == '3.x' || env.BRANCH_NAME == '4.x-unstable' }
         }
         steps {
            sh "rm -rf build/libs/"
            sh "chmod +x gradlew"
            sh "./gradlew clean build publish --refresh-dependencies --stacktrace"

            archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
         }
      }
   }
}