Revamp stages and restructure project #1
@ -5,10 +5,12 @@ void call(Map config = [:], Closure body) {
|
||||
stepName: 'Checkout',
|
||||
useJobSCM: true
|
||||
]
|
||||
echo "Firing ..."
|
||||
echo 'Firing ...'
|
||||
runConfig = defaults + config
|
||||
stage(runConfig.stepName) {
|
||||
if (runConfig.useJobSCM) {
|
||||
checkout scm
|
||||
}
|
||||
body()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user