From 78ebc3770b41cdedb0c0448a775276ed4528d141 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 14 Feb 2022 13:13:28 +0100 Subject: [PATCH] feat: add ability to execute custom extraSteps --- vars/buildPodman.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vars/buildPodman.groovy b/vars/buildPodman.groovy index 82bc2c7a..bb5aa1fe 100644 --- a/vars/buildPodman.groovy +++ b/vars/buildPodman.groovy @@ -1,6 +1,6 @@ // Common container builder by ZeroDownTime -def call(Map config) { +def call(Map config=[:], Closure extraSteps) { pipeline { agent { node { @@ -59,6 +59,8 @@ def call(Map config) { sh 'make push' } } + + extraSteps() } } }