java-spring-microservice/Jenkinsfile
Jim Nicholson 7544cf396c
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
fix build
2021-12-09 18:49:06 -08:00

22 lines
352 B
Groovy

podTemplate(containers: [
containerTemplate(
name: 'maven',
image: 'maven:3.8.1-jdk-11',
command: 'sleep',
args: '30d'
)
]) {
node(POD_LABEL) {
stage('Checkout') {
scm checkout
container('maven') {
stage('Build') {
sh '''
mvn clean package
'''
}
}
}
}
}