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
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')
}
}
}