From 63665f0db60c241c4aea73f9df791e78a448d0cf Mon Sep 17 00:00:00 2001 From: nhyatt Date: Thu, 26 May 2022 19:14:27 -0500 Subject: [PATCH] adds force flag for kaniko changes --- vars/declarativeFunctions.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vars/declarativeFunctions.groovy b/vars/declarativeFunctions.groovy index a269aca..1a9c64b 100644 --- a/vars/declarativeFunctions.groovy +++ b/vars/declarativeFunctions.groovy @@ -62,6 +62,7 @@ def buildContainer (Map config, List buildArg = []) { } sh """ /kaniko/executor \\ + --force \\ --context "${ws}" \\ -f "${ws}/Dockerfile" \\ --destination "${config.imageDest}" \\ @@ -95,6 +96,7 @@ def buildContainerMultipleDestinations (Map config, List buildArg = []) { sh """ /kaniko/executor \\ + --force \\ --context "${ws}" \\ -f "${ws}/Dockerfile" \\ ${buildArguments}