Add build
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
Some checks failed
Homelab/java-spring-microservice/pipeline/head There was a failure building this commit
This commit is contained in:
parent
c8109f8ec1
commit
3f56250c7c
20
Jenkinsfile
vendored
Normal file
20
Jenkinsfile
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user