ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since c3d3c22 was
f78ead5,
checked in by Thierry Delisle <tdelisle@…>, 4 years ago
|
Getting last successful Full Build by default
|
-
Property mode set to
100644
|
File size:
873 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 |
---|
[1483a16] | 12 | def BuildStage(String name, boolean run, Closure block ) { |
---|
[27b1ca1] | 13 | StageName = name |
---|
| 14 | echo " -------- ${StageName} -------- " |
---|
| 15 | if(run) { |
---|
| 16 | stage(name, block) |
---|
| 17 | } else { |
---|
| 18 | stage(name) { Utils.markStageSkippedForConditional(STAGE_NAME) } |
---|
| 19 | } |
---|
[8ca82de] | 20 | } |
---|
| 21 | |
---|
[4011b98] | 22 | //=========================================================================================================== |
---|
| 23 | // Common compilation routines |
---|
| 24 | //=========================================================================================================== |
---|
| 25 | def clean() { |
---|
[f78ead5] | 26 | BuildStage('Cleanup', true) { |
---|
[4011b98] | 27 | // clean the build by wipping the build directory |
---|
| 28 | dir(BuildDir) { |
---|
| 29 | deleteDir() |
---|
| 30 | } |
---|
| 31 | } |
---|
| 32 | } |
---|
| 33 | |
---|
[8ca82de] | 34 | return this; |
---|
Note: See
TracBrowser
for help on using the repository browser.