Changeset 6badd87 for Jenkinsfile


Ignore:
Timestamp:
Sep 9, 2019, 5:03:36 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d0e4f7f
Parents:
655c5fa
Message:

Testing calls to git from Jenkinsfile rather than PrettyGitLog?.sh, in an effort to not run inside a node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r655c5fa r6badd87  
    227227        if (!Settings || !Settings.GitOldRef || !Settings.GitNewRef) return "\nERROR retrieveing git information!\n"
    228228
    229         sh "${SrcDir}/tools/PrettyGitLogs.sh ${SrcDir} ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"
     229        // sh "${SrcDir}/tools/PrettyGitLogs.sh ${SrcDir} ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"
     230
     231        def result = sh(returnStdout: true, script: "git rev-list ${Settings.GitOldRef}..${Settings.GitNewRef}")
     232        echo result
    230233
    231234        def gitUpdate = readFile("${BuildDir}/GIT_UPDATE")
    232         def gitLog    = readFile("${BuildDir}/GIT_LOG")
     235        def gitLog    = sh(returnStdout: true, script: "git rev-list --format=short ${Settings.GitOldRef}...${Settings.GitNewRef}")
    233236        def gitDiff   = readFile("${BuildDir}/GIT_DIFF")
    234237
Note: See TracChangeset for help on using the changeset viewer.