Changes in / [cad1df1:c74e601]
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
rcad1df1 rc74e601 3 3 import groovy.transform.Field 4 4 5 // For skipping stages 6 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils5 import static Jenkins.tools.build_stage as build_stage 6 import Jenkins.tools 7 7 8 8 //=========================================================================================================== … … 15 15 SrcDir = pwd tmp: false 16 16 Settings = null 17 StageName = ''18 17 19 18 // Local variables … … 66 65 67 66 //Store the result of the build log 68 currentBuild.result = "${ StageName} FAILURE".trim()67 currentBuild.result = "${tools.StageName} FAILURE".trim() 69 68 } 70 69 … … 517 516 } 518 517 519 def build_stage(String name, boolean run, Closure block ) {520 StageName = name521 echo " -------- ${StageName} -------- "522 if(run) {523 stage(name, block)524 } else {525 stage(name) { Utils.markStageSkippedForConditional(STAGE_NAME) }526 }527 }528 529 518 def make_doc() { 530 519 def err = null
Note:
See TracChangeset
for help on using the changeset viewer.