Ignore:
Timestamp:
Dec 3, 2020, 9:20:04 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
1ac1f0b
Parents:
34dcc78c (diff), 6c9e0bc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/tools.groovy

    r34dcc78c ra9a1d06  
    2424// Common compilation routines
    2525//===========================================================================================================
    26 def clean() {
     26def Clean() {
    2727        BuildStage('Cleanup', true) {
    2828                // clean the build by wipping the build directory
     
    3333}
    3434
    35 def checkout(commitHash = null) {
     35def Checkout(commitHash = null) {
    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(commitHash) {
     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.