Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
22 lines
356 B
Groovy
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
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|