Try this instead

This commit is contained in:
Jim Nicholson 2024-02-07 02:20:54 -08:00
parent d43f8c3805
commit 1a710c3155
3 changed files with 4 additions and 5 deletions

View File

@ -9,7 +9,7 @@ void call(Map config = [:], Closure body) {
]
Map runConfig = defaults + config
stage(runConfig.stepName) {
echo makeStepBanner(runConfig.stepName)
makeStepBanner(runConfig.stepName)
if (runConfig.saveArtifacts) {
assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!'
}

View File

@ -8,7 +8,7 @@ void call(Map config = [:], Closure body) {
echo 'Firing ...'
runConfig = defaults + config
stage(runConfig.stepName) {
echo makeStepBanner(runConfig.stepName)
makeStepBanner(runConfig.stepName)
if (runConfig.useJobSCM) {
checkout scm
}

View File

@ -1,10 +1,9 @@
String makeStepBanner(String msg) {
banner = """
void makeStepBanner(String msg) {
echo """
===========================================
${msg}
===========================================
"""
return banner
}