geforkt von Mirrors/Velocity
23 Zeilen
375 B
Groovy
23 Zeilen
375 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'gradle:jdk8-slim'
|
|
args '-v m2-cache:/root/.m2'
|
|
}
|
|
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh './gradlew shadowJar'
|
|
archiveArtifacts 'build/libs/*.jar'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh './gradlew test'
|
|
junit 'build/test-results/test/*.xml'
|
|
}
|
|
}
|
|
}
|
|
} |