ADTarm-ehenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since 27b1ca1 was
27b1ca1,
checked in by Thierry Delisle <tdelisle@…>, 2 years ago
|
Modified Jenkinsfile to move out some of the helper for later reuse
|
-
Property mode set to
100644
|
File size:
469 bytes
|
Rev | Line | |
---|
[27b1ca1] | 1 | #!groovy |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | // For skipping stages |
---|
| 5 | import org.jenkinsci.plugins.pipeline.modeldefinition.Utils |
---|
| 6 | |
---|
| 7 | // Global for the stage name |
---|
| 8 | StageName = '' |
---|
| 9 | |
---|
| 10 | // wrapper around stage declaretion to be more verbose |
---|
| 11 | // and allow showing as skipped in the UI |
---|
| 12 | def build_stage(String name, boolean run, Closure block ) { |
---|
| 13 | StageName = name |
---|
| 14 | echo " -------- ${StageName} -------- " |
---|
| 15 | if(run) { |
---|
| 16 | stage(name, block) |
---|
| 17 | } else { |
---|
| 18 | stage(name) { Utils.markStageSkippedForConditional(STAGE_NAME) } |
---|
| 19 | } |
---|
| 20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.