Update Jenkinsfile

This commit is contained in:
MoMaMi 2020-09-20 21:05:34 +04:00 committed by GitHub
parent 695197fbdc
commit de3b2d6df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
Jenkinsfile vendored
View file

@ -1,7 +1,7 @@
pipeline { pipeline {
agent none agent none
stages { stages {
stage('Back-end build') { stage('Back-end build') {
agent { agent {
docker { docker {
image 'maven' image 'maven'
@ -11,8 +11,12 @@
} }
steps { steps {
sh 'mvn clean package' sh 'mvn clean package'
stash includes: 'target/*.war', name: 'pet'
} }
} }
} stage('Build petclinic') {
agent { dockerfile true }
}
} }
}
}
}