diff --git a/Jenkinsfile b/Jenkinsfile index b19fbd7..f48da41 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,13 @@ pipeline { - - stage('Build image') { - checkout scm - dir('SessionCompanion') { - docker.build("session-companion:${env.BUILD_ID}") + stages { + stage('Build image') { + checkout scm + dir('SessionCompanion') { + docker.build("session-companion:${env.BUILD_ID}") + } + } + stage('Build app') { + docker.image("session-companion:${env.BUILD_ID}").withRun('-p 5050:5050') } } - stage('Build app') { - docker.image("session-companion:${env.BUILD_ID}").withRun('-p 5050:5050') - } }