feat: add ability to execute custom extraSteps

This commit is contained in:
Stefan Reimer 2022-02-14 13:13:28 +01:00
parent 5823b8b0a7
commit 78ebc3770b

View File

@ -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()
}
}
}