Changeset 53449a4 for Jenkins/FullBuild
- Timestamp:
- Dec 16, 2020, 4:01:57 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8ba363e, c8025a21
- Parents:
- b3c8496 (diff), 3e5dd913 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
rb3c8496 r53449a4 8 8 def err = null 9 9 10 final scmVars = checkout scm 11 final commitId = scmVars.GIT_COMMIT 12 10 13 try { 11 14 //Wrap build to add timestamp to command line … … 13 16 14 17 stage('Build') { 15 16 results = [null, null]17 18 18 19 parallel ( … … 31 32 32 33 stage('Package') { 33 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: gitRefNewValue), string(name: 'Build', value: currentBuild.number)]34 build job: 'Cforall_Distribute_Ref', parameters: [string(name: 'GitRef', value: commitId), string(name: 'Build', value: currentBuild.number.toString())] 34 35 } 35 36 } … … 102 103 } 103 104 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 105 //=========================================================================================================== 121 106 //Routine responsible of sending the email notification once the build is completed
Note: See TracChangeset
for help on using the changeset viewer.