Revamp stages and restructure project #1
@ -8,9 +8,6 @@ void call(Map config = [:], Closure body) {
|
|||||||
echo 'Firing ...'
|
echo 'Firing ...'
|
||||||
runConfig = defaults + config
|
runConfig = defaults + config
|
||||||
stage(runConfig.stepName) {
|
stage(runConfig.stepName) {
|
||||||
repetitions = runConfig.stepName.length() + 2
|
|
||||||
boxTop = '+' + '=' * repetitions + '+'
|
|
||||||
echo "${boxTop}\n| ${runConfig.stepName} |\n${boxTop}\n"
|
|
||||||
printBanner(runConfig.stepName)
|
printBanner(runConfig.stepName)
|
||||||
if (runConfig.useJobSCM) {
|
if (runConfig.useJobSCM) {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
void printBanner(String anything) {
|
void printBanner(String anything) {
|
||||||
|
boxCorner = '+'
|
||||||
repetitions = anything.length() + 2
|
repetitions = anything.length() + 2
|
||||||
boxTop = "+${'=' * repetitions}+"
|
boxTop = boxCorner + '=' * repetitions + boxCorner
|
||||||
echo "${boxTop}\n| ${anything} |\n${boxTop}\n"
|
echo "${boxTop}\n| ${anything} |\n${boxTop}\n"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user