Changeset 27b1ca1 for Jenkinsfile


Ignore:
Timestamp:
Dec 3, 2020, 4:37:50 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
c74e601
Parents:
0f88a225
Message:

Modified Jenkinsfile to move out some of the helper for later reuse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r0f88a225 r27b1ca1  
    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.