2016-09-22 19:33:47 +00:00
|
|
|
node {
|
|
|
|
stage 'Checkout'
|
|
|
|
|
|
|
|
checkout scm
|
|
|
|
|
|
|
|
stage 'Build'
|
|
|
|
|
|
|
|
sh "rm -rf build/libs/"
|
|
|
|
sh "chmod +x gradlew"
|
2019-06-24 10:17:45 +00:00
|
|
|
sh "./gradlew build -x test --refresh-dependencies"
|
2016-09-22 19:33:47 +00:00
|
|
|
|
|
|
|
stage "Archive artifacts"
|
|
|
|
|
2018-05-14 10:50:02 +00:00
|
|
|
sh "./gradlew publish"
|
2016-09-22 19:33:47 +00:00
|
|
|
}
|