Revamp stages and restructure project #1

Merged
jim merged 32 commits from newstage into master 2024-02-08 02:22:21 +00:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit e759b6a178 - Show all commits

View File

@ -8,9 +8,6 @@ void call(Map config = [:], Closure body) {
echo 'Firing ...'
runConfig = defaults + config
stage(runConfig.stepName) {
repetitions = runConfig.stepName.length() + 2
boxTop = '+' + '=' * repetitions + '+'
echo "${boxTop}\n| ${runConfig.stepName} |\n${boxTop}\n"
printBanner(runConfig.stepName)
if (runConfig.useJobSCM) {
checkout scm

View File

@ -1,5 +1,6 @@
void printBanner(String anything) {
boxCorner = '+'
repetitions = anything.length() + 2
boxTop = "+${'=' * repetitions}+"
boxTop = boxCorner + '=' * repetitions + boxCorner
echo "${boxTop}\n| ${anything} |\n${boxTop}\n"
}