Add publish step

This commit is contained in:
Jim Nicholson 2024-02-07 05:28:20 -08:00
parent 107d2c6d69
commit 2427480775
2 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,6 @@ void call(Map config = [:], Closure body = { }) {
stepName: 'Checkout',
useJobSCM: true
]
echo 'Firing ...'
runConfig = defaults + config
stage(runConfig.stepName) {
printBanner(runConfig.stepName)

12
vars/publishStep.groovy Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env groovy
void call(Map config = [:], Closure body = { }) {
Map defaults = [
stepName: 'Publish'
]
runConfig = defaults + config
stage(runConfig.stepName) {
printBanner(runConfig.stepName)
body()
}
}