This commit is contained in:
Jim Nicholson 2024-02-07 01:53:47 -08:00
parent b146e04866
commit fa3fd076d4

View File

@ -5,10 +5,12 @@ void call(Map config = [:], Closure body) {
stepName: 'Checkout', stepName: 'Checkout',
useJobSCM: true useJobSCM: true
] ]
echo "Firing ..." echo 'Firing ...'
runConfig = defaults + config runConfig = defaults + config
stage(runConfig.stepName) { stage(runConfig.stepName) {
if (runConfig.useJobSCM) {
checkout scm checkout scm
}
body() body()
} }
} }