Changeset d0e4f7f


Ignore:
Timestamp:
Sep 9, 2019, 5:06:58 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:
dea0b69
Parents:
6badd87
Message:

Trying to figure out the syntax for sh returning into a variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r6badd87 rd0e4f7f  
    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}"
    230 
    231         def result = sh(returnStdout: true, script: "git rev-list ${Settings.GitOldRef}..${Settings.GitNewRef}")
     229        sh "${SrcDir}/tools/PrettyGitLogs.sh ${SrcDir} ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"
     230
     231        def result = sh "git rev-list ${Settings.GitOldRef}..${Settings.GitNewRef}"
    232232        echo result
    233233
    234234        def gitUpdate = readFile("${BuildDir}/GIT_UPDATE")
    235         def gitLog    = sh(returnStdout: true, script: "git rev-list --format=short ${Settings.GitOldRef}...${Settings.GitNewRef}")
     235        def gitLog    = sh "git rev-list --format=short ${Settings.GitOldRef}...${Settings.GitNewRef}"
    236236        def gitDiff   = readFile("${BuildDir}/GIT_DIFF")
    237237
Note: See TracChangeset for help on using the changeset viewer.