java-spring-microservice/Jenkinsfile
Jim Nicholson 9de162bf21
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
checkout is needed
2021-12-09 19:22:40 -08:00

22 lines
356 B
Groovy

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