feat: add ability to execute custom extraSteps
This commit is contained in:
parent
ba21a45551
commit
322285e4f4
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user