15 lines
220 B
Plaintext
15 lines
220 B
Plaintext
|
node {
|
||
|
stage 'Checkout'
|
||
|
|
||
|
checkout scm
|
||
|
|
||
|
stage 'Build'
|
||
|
|
||
|
sh "rm -rf build/libs/"
|
||
|
sh "chmod +x gradlew"
|
||
|
sh "./gradlew build --refresh-dependencies"
|
||
|
|
||
|
stage "Archive artifacts"
|
||
|
|
||
|
sh "./gradlew publish"
|
||
|
}
|