diff --git a/vars/declarativeFunctions.groovy b/vars/declarativeFunctions.groovy index c32f747..385fbf6 100644 --- a/vars/declarativeFunctions.groovy +++ b/vars/declarativeFunctions.groovy @@ -93,7 +93,7 @@ def buildContainer (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ - --ignore-var-run=false \\ + --ignore-var-run=true \\ -f "${ws}/Dockerfile" \\ --destination "${config.imageDest}" \\ ${buildArguments} @@ -128,7 +128,7 @@ def buildContainerMultipleDestinations (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ - --ignore-var-run=false \\ + --ignore-var-run=true \\ -f "${ws}/Dockerfile" \\ ${buildArguments} """ diff --git a/vars/functions.groovy b/vars/functions.groovy index f1b3b4d..3f8fb77 100644 --- a/vars/functions.groovy +++ b/vars/functions.groovy @@ -123,7 +123,7 @@ def buildContainer (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ - --ignore-var-run=false \\ + --ignore-var-run=true \\ -f "${ws}/Dockerfile" \\ --destination "${config.imageDest}" \\ ${buildArguments} @@ -162,7 +162,7 @@ def buildContainerMultipleDestinations (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ - --ignore-var-run=false \\ + --ignore-var-run=true \\ -f "${ws}/Dockerfile" \\ ${buildArguments} """