diff --git a/Jenkinsfile b/Jenkinsfile index 449a02d..43c4031 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,8 @@ pipeline { agent any stages { + def dockerImage + stage('Pull git') { steps { checkout scm @@ -11,7 +13,7 @@ pipeline { stage('Build Docker Image') { steps { script { - def dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:latest') + dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:latest') } } }