- Timestamp:
- Dec 11, 2020, 11:26:04 AM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
radf34b3 r98168b9 7 7 node ('master') { 8 8 def err = null 9 10 final commitId = sh(returnStdout: true, script: 'git rev-parse HEAD') 9 11 10 12 try { … … 31 33 32 34 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)] 34 36 } 35 37 } … … 102 104 } 103 105 104 //Helper routine to collect information about the git history105 def collect_git_info() {106 107 //create the temporary output directory in case it doesn't already exist108 def out_dir = pwd tmp: true109 sh "mkdir -p ${out_dir}"110 111 //parse git logs to find what changed112 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 120 106 //=========================================================================================================== 121 107 //Routine responsible of sending the email notification once the build is completed
Note: See TracChangeset
for help on using the changeset viewer.