aboutsummaryrefslogtreecommitdiff
path: root/JenkinsD
blob: 6c67c209ef47894f61fc02db5b77bd3aa055a46b (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 == '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
         }
      }
   }
}