Changeset 98168b9


Ignore:
Timestamp:
Dec 11, 2020, 11:26:04 AM (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:
73a3be5
Parents:
adf34b3
Message:

Fix how full build fetches git commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    radf34b3 r98168b9  
    77node ('master') {
    88        def err = null
     9
     10        final commitId = sh(returnStdout: true, script: 'git rev-parse HEAD')
    911
    1012        try {
     
    3133
    3234                        stage('Package') {
    33                                 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)]
     35                                build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number)]
    3436                        }
    3537                }
     
    102104}
    103105
    104 //Helper routine to collect information about the git history
    105 def collect_git_info() {
    106 
    107         //create the temporary output directory in case it doesn't already exist
    108         def out_dir = pwd tmp: true
    109         sh "mkdir -p ${out_dir}"
    110 
    111         //parse git logs to find what changed
    112         dir("../Cforall_Full_Build@script") {
    113                 sh "git reflog > ${out_dir}/GIT_COMMIT"
    114         }
    115         git_reflog = readFile("${out_dir}/GIT_COMMIT")
    116         gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]
    117         gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]
    118 }
    119 
    120106//===========================================================================================================
    121107//Routine responsible of sending the email notification once the build is completed
Note: See TracChangeset for help on using the changeset viewer.