feat: add ability to execute custom extraSteps
This commit is contained in:
parent
5823b8b0a7
commit
78ebc3770b
@ -1,6 +1,6 @@
|
|||||||
// Common container builder by ZeroDownTime
|
// Common container builder by ZeroDownTime
|
||||||
|
|
||||||
def call(Map config) {
|
def call(Map config=[:], Closure extraSteps) {
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
node {
|
node {
|
||||||
@ -59,6 +59,8 @@ def call(Map config) {
|
|||||||
sh 'make push'
|
sh 'make push'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extraSteps()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user