Changeset d4e338f


Ignore:
Timestamp:
Dec 4, 2020, 1:24:21 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:
6a45bd78, a12cd594
Parents:
6c0ef72
Message:

Fixed how GitLogMessage? saves results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/tools.groovy

    r6c0ef72 rd4e338f  
    6868PrevGitNewRef = ''
    6969def GitLogMessage(String oldRef = '', String newRef = '') {
    70         if (!PrevGitOldRef && !oldRef) return "\nERROR retrieveing git information!\n"
     70        if (!oldRef) { if(!PrevGitOldRef) { return "\nERROR retrieveing current git information!\n"  } else { PreGitOldRef = oldRef } }
     71        if (!newRef) { if(!PrevGitNewRef) { return "\nERROR retrieveing previous git information!\n" } else { PreGitNewRef = newRef } }
     72
    7173        PrevGitOldRef = oldRef
    72 
    73         if (!PrevGitNewRef && !newRef) return "\nERROR retrieveing previous git information!\n"
    7474        PrevGitNewRef = newRef
    7575
     
    9393        gitDiff = gitDiff.replace('[31m', '<span style="color: #AA0000;">')
    9494        gitDiff = gitDiff.replace('[m', '</span>')
     95
     96        PrevGitOldRef = oldRef
     97        PrevGitNewRef = newRef
    9598
    9699        return """
Note: See TracChangeset for help on using the changeset viewer.