feat: add ability to execute custom extraSteps

This commit is contained in:
Stefan Reimer 2022-02-14 13:13:28 +01:00
parent ba21a45551
commit 322285e4f4
1 changed files with 3 additions and 1 deletions

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