geforkt von Mirrors/Velocity
27 Zeilen
497 B
Groovy
27 Zeilen
497 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'openjdk:8-jdk-slim'
|
|
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw'
|
|
}
|
|
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh './gradlew shadowJar'
|
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh './gradlew test'
|
|
}
|
|
}
|
|
stage('Deploy Artifacts') {
|
|
steps {
|
|
sh './gradlew publish'
|
|
}
|
|
}
|
|
}
|
|
} |