2018-07-26 07:03:59 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-07-31 22:12:41 +02:00
|
|
|
image 'openjdk:8-jdk-slim'
|
2018-08-22 05:26:41 +02:00
|
|
|
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw'
|
2018-07-26 07:03:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh './gradlew shadowJar'
|
2018-08-01 03:07:18 +02:00
|
|
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
2018-07-26 07:03:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh './gradlew test'
|
|
|
|
}
|
|
|
|
}
|
2018-08-22 05:26:41 +02:00
|
|
|
stage('Deploy Artifacts') {
|
|
|
|
steps {
|
2018-08-22 05:35:09 +02:00
|
|
|
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
|
2018-08-22 05:26:41 +02:00
|
|
|
}
|
|
|
|
}
|
2018-07-26 07:03:59 +02:00
|
|
|
}
|
|
|
|
}
|