java-spring-microservice/Jenkinsfile
Jim Nicholson 3b85dbcf56
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
Fix syntax
2021-12-09 18:54:50 -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') {
checkout scm
container('maven') {
stage('Build') {
sh '''
mvn clean package
'''
}
}
}
}
}