Changeset 032fd93


Ignore:
Timestamp:
Dec 3, 2020, 9:11:17 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:
68f2e42
Parents:
1de50a9
Message:

Changed groovy to not use ternary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/tools.groovy

    r1de50a9 r032fd93  
    3636        BuildStage('Checkout', true) {
    3737                //checkout the source code and clean the repo
    38                 final scmVars = ref ? checkout scm : checkout([$class: 'GitSCM', branches: [[name: commitHash ]]])
     38                if(ref) {
     39                        final scmVars = checkout([$class: 'GitSCM', branches: [[name: commitHash ]]])
     40                        echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
     41                } else {
    3942
    40                 echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
     43                        final scmVars = checkout scm
     44                        echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
     45                }
    4146        }
    4247}
Note: See TracChangeset for help on using the changeset viewer.