java-spring-microservice/Jenkinsfile
Jim Nicholson d700721673
All checks were successful
Homelab/java-spring-microservice/pipeline/head This commit looks good
Skip tests for now
2021-12-09 23:24:55 -08:00

25 lines
564 B
Groovy

def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, containers: [
containerTemplate(
name: 'maven',
image: 'maven:3.8.4-openjdk-11',
command: 'sleep',
args: '30d'
)
]) {
node(label) {
stage('Checkout') {
// git credentialsId: 'jenkins-credentials', url: 'https://git.thejimnicholson.com/homelab/java-spring-microservice.git'
checkout scm
container('maven') {
stage('Build') {
sh '''
mvn clean package -Dmaven.test.skip
'''
}
}
}
}
}