java-spring-microservice/Jenkinsfile
Jim Nicholson f20f3f181f
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
Run a test
2021-12-09 22:31:47 -08:00

25 lines
422 B
Groovy

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