source: Jenkins/tools.groovy@ 91aa5ab

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 91aa5ab was 1483a16, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Loading seems to work, usage doesn't

  • Property mode set to 100644
File size: 482 bytes
Line 
1#!groovy
2
3
4// For skipping stages
5import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
6
7// Global for the stage name
8StageName = ''
9
10// wrapper around stage declaretion to be more verbose
11// and allow showing as skipped in the UI
12def BuildStage(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}
21
22return this;
Note: See TracBrowser for help on using the repository browser.