Revamp stages and restructure project #1

Merged
jim merged 32 commits from newstage into master 2024-02-08 02:22:21 +00:00
3 changed files with 11 additions and 0 deletions
Showing only changes of commit 8de898ea2d - Show all commits

View File

@ -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!'
}

View File

@ -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
}

View File

@ -0,0 +1,9 @@
String makeStepBanner(String msg) {
return """
===========================================
${msg}
===========================================
"""
}