Changeset 8ecb590


Ignore:
Timestamp:
Jun 25, 2019, 11:03:14 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
e791851
Parents:
6c55a3d
Message:

More obscure tentative for skipped builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r6c55a3d r8ecb590  
    22
    33import groovy.transform.Field
     4
     5// For skipping stages
     6import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
    47
    58//===========================================================================================================
     
    409412        StageName = name
    410413        echo " -------- ${StageName} -------- "
    411         stage(name, run ? block : false)
     414        if(run) {
     415                stage(name, block)
     416        } else {
     417                stage(name) { Utils.markStageSkippedForConditional(STAGE_NAME) }
     418        }
    412419}
    413420
Note: See TracChangeset for help on using the changeset viewer.