diff --git a/vars/buildContainerImage2.groovy b/vars/buildContainerImage2.groovy index 5031227..b058133 100644 --- a/vars/buildContainerImage2.groovy +++ b/vars/buildContainerImage2.groovy @@ -53,7 +53,7 @@ def call(args) { } parallel stages - runInPod(null) { + runInPod { container('buildah') { withBuildahCreds(registry) { if (archlist.size() > 1) { @@ -109,6 +109,10 @@ def buildStage(args) { } } +def runInPod(block) { + runInPod(null, block) +} + def runInPod(args, block) { def arch = args?.arch def resources = args?.resources