2019-01-26 15:12:19 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2018-11-05 09:54:00 -05:00
|
|
|
|
2019-01-26 15:12:19 -05:00
|
|
|
stage ('Build') {
|
|
|
|
when {
|
|
|
|
branch 'master'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh "rm -rf build/libs/"
|
|
|
|
sh "chmod +x gradlew"
|
2019-04-22 11:12:05 -04:00
|
|
|
sh "./gradlew clean --stacktrace"
|
2019-04-23 18:54:15 -04:00
|
|
|
sh "./gradlew build publish --refresh-dependencies --stacktrace"
|
2018-11-05 09:54:00 -05:00
|
|
|
|
2019-01-26 15:12:19 -05:00
|
|
|
archiveArtifacts artifacts: '**/build/libs/*.jar', fingerprint: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-22 11:12:05 -04:00
|
|
|
}
|