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