aboutsummaryrefslogtreecommitdiff
path: root/JenkinsD
blob: f0c80cf992cd17b8de82dcb895c48046cdd8eabb (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 == '4.x' || env.BRANCH_NAME == '5.x' }
         }
         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
         }
      }
   }
}