Move declaration to outer scope

This commit is contained in:
Jannis Portmann 2023-04-07 11:08:58 +02:00
parent df3c1229b0
commit 0433800768

4
Jenkinsfile vendored
View file

@ -2,6 +2,8 @@ pipeline {
agent any agent any
stages { stages {
def dockerImage
stage('Pull git') { stage('Pull git') {
steps { steps {
checkout scm checkout scm
@ -11,7 +13,7 @@ pipeline {
stage('Build Docker Image') { stage('Build Docker Image') {
steps { steps {
script { script {
def dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:latest') dockerImage = docker.build('pflaenzli', '-f Dockerfile . --tag pflaenzli:latest')
} }
} }
} }