java-spring-microservice/Jenkinsfile
Jim Nicholson 3f56250c7c
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
Add build
2021-12-09 18:46:51 -08:00

20 lines
323 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
'''
}
}
}
}