Changes in / [cad1df1:c74e601]


Ignore:
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rcad1df1 rc74e601  
    33import groovy.transform.Field
    44
    5 // For skipping stages
    6 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
     5import static Jenkins.tools.build_stage as build_stage
     6import Jenkins.tools
    77
    88//===========================================================================================================
     
    1515        SrcDir    = pwd tmp: false
    1616        Settings  = null
    17         StageName = ''
    1817
    1918        // Local variables
     
    6665
    6766                //Store the result of the build log
    68                 currentBuild.result = "${StageName} FAILURE".trim()
     67                currentBuild.result = "${tools.StageName} FAILURE".trim()
    6968        }
    7069
     
    517516}
    518517
    519 def build_stage(String name, boolean run, Closure block ) {
    520         StageName = name
    521         echo " -------- ${StageName} -------- "
    522         if(run) {
    523                 stage(name, block)
    524         } else {
    525                 stage(name) { Utils.markStageSkippedForConditional(STAGE_NAME) }
    526         }
    527 }
    528 
    529518def make_doc() {
    530519        def err = null
Note: See TracChangeset for help on using the changeset viewer.