You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
825 B
21 lines
825 B
env.OPENCPS_CACHE_VOLUME='gradle_cache_volume'
|
|
|
|
node {
|
|
stage('Preparation & Checkout') {
|
|
checkout changelog: true, poll: true, scm: [
|
|
$class : 'GitSCM',
|
|
branches : [[name: 'master']],
|
|
extensions : [[$class : 'CloneOption',
|
|
shallow: false, timeout: 75],
|
|
[$class: 'CleanBeforeCheckout']],
|
|
userRemoteConfigs: [[url: 'https://github.com/VietOpenCPS/opencps-v2.git']]
|
|
]
|
|
}
|
|
stage('Update cache') {
|
|
docker.image("openjdk:8u252-jdk").inside("-v ${env.OPENCPS_CACHE_VOLUME}:/root/.gradle") {
|
|
sh './gradlew -v'
|
|
sh './gradlew --no-daemon buildService'
|
|
sh './gradlew --no-daemon build'
|
|
}
|
|
}
|
|
}
|
|
|