Add publish step
This commit is contained in:
parent
107d2c6d69
commit
2427480775
@ -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
12
vars/publishStep.groovy
Normal 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()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user