java-spring-microservice/Jenkinsfile
Jim Nicholson 0ae0351c9d
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
is checkout necessary
2021-12-09 19:11:10 -08:00

23 lines
339 B
Groovy

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