pipeline {
agent {
docker {
image 'gradle:jdk8-slim'
args '-v gradle-cache:/home/gradle/.gradle:rw'
}
stages {
stage('Build') {
steps {
sh './gradlew shadowJar'
archiveArtifacts 'build/libs/*.jar'
stage('Test') {
sh './gradlew test'