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',
useJobSCM: true
]
echo "Firing ..."
echo 'Firing ...'
runConfig = defaults + config
stage(runConfig.stepName) {
if (runConfig.useJobSCM) {
checkout scm
}
body()
}
}