Ignore:
Timestamp:
Dec 5, 2020, 8:48:42 AM (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:
e91a255
Parents:
7c1144b (diff), ad915e0 (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

    r7c1144b rec5d599  
    3737                //checkout the source code and clean the repo
    3838                if(commitHash) {
    39                         final scmVars = checkout([$class: 'GitSCM', branches: [[name: commitHash ]]])
     39                        echo "Checking out commit <${commitHash}>"
     40                        final scmVars = checkout([$class: 'GitSCM', branches: [[name: commitHash ]],
     41                                userRemoteConfigs: [[
     42                                        url: 'cforall@plg.uwaterloo.ca:software/cfa/cfa-cc',
     43                                        credentialsId: 'git_key_aug20']]
     44                        ])
    4045                        echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
    4146                } else {
    42 
    4347                        final scmVars = checkout scm
    4448                        echo GitLogMessage(scmVars.GIT_COMMIT, scmVars.GIT_PREVIOUS_COMMIT)
     
    6165}
    6266
    63 def GitLogMessage(String oldRef, String newRef) {
     67PrevGitOldRef = ''
     68PrevGitNewRef = ''
     69def GitLogMessage(String oldRef = '', String newRef = '') {
     70        if (!oldRef) { if(!PrevGitOldRef) { return "\nERROR retrieveing current git information!\n"  } else { oldRef = PrevGitOldRef } }
     71        if (!newRef) { if(!PrevGitNewRef) { return "\nERROR retrieveing previous git information!\n" } else { newRef = PrevGitNewRef } }
     72
    6473        def revText = sh(returnStdout: true, script: "git rev-list ${oldRef}..${newRef}").trim()
    6574        def revList = SplitLines( revText )
     
    8190        gitDiff = gitDiff.replace('[31m', '<span style="color: #AA0000;">')
    8291        gitDiff = gitDiff.replace('[m', '</span>')
     92
     93        PrevGitOldRef = oldRef
     94        PrevGitNewRef = newRef
    8395
    8496        return """
Note: See TracChangeset for help on using the changeset viewer.