Some checks reported errors
Homelab/java-spring-microservice/pipeline/head Something is wrong with the build of this commit
26 lines
550 B
Groovy
26 lines
550 B
Groovy
|
|
def label = "mypod-${UUID.randomUUID().toString()}"
|
|
podTemplate(containers: [
|
|
containerTemplate(
|
|
label: label,
|
|
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
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|