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