Revamp stages and restructure project #1
@ -9,6 +9,7 @@ void call(Map config = [:], Closure body) {
|
||||
]
|
||||
Map runConfig = defaults + config
|
||||
stage(runConfig.stepName) {
|
||||
echo makeStepBanner(runConfig.stepName)
|
||||
if (runConfig.saveArtifacts) {
|
||||
assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!'
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ void call(Map config = [:], Closure body) {
|
||||
echo 'Firing ...'
|
||||
runConfig = defaults + config
|
||||
stage(runConfig.stepName) {
|
||||
echo makeStepBanner(runConfig.stepName)
|
||||
if (runConfig.useJobSCM) {
|
||||
checkout scm
|
||||
}
|
||||
|
||||
9
vars/makeStepBanner.groovy
Normal file
9
vars/makeStepBanner.groovy
Normal file
@ -0,0 +1,9 @@
|
||||
String makeStepBanner(String msg) {
|
||||
return """
|
||||
===========================================
|
||||
|
||||
${msg}
|
||||
|
||||
===========================================
|
||||
"""
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user