14 lines
258 B
Groovy
14 lines
258 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
void call(Map config = [:], Closure body) {
|
|
Map defaults = [
|
|
stepName: 'Checkout',
|
|
useJobSCM: true
|
|
]
|
|
runConfig = defaults + config
|
|
stage(runConfig.stepName) {
|
|
checkout scm
|
|
body()
|
|
}
|
|
}
|