Changeset 58fe85a for Jenkins/FullBuild
- Timestamp:
- Jan 7, 2021, 3:27:00 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 2b4daf2, 64aeca0
- Parents:
- 3c64c668 (diff), eef8dfb (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
-
Jenkins/FullBuild (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
r3c64c668 r58fe85a 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 … … 14 17 stage('Build') { 15 18 16 results = [null, null] 19 parallel ( 20 gcc_8_x86_old: { trigger_build( 'gcc-8', 'x86', false ) }, 21 gcc_7_x86_old: { trigger_build( 'gcc-7', 'x86', false ) }, 22 gcc_6_x86_old: { trigger_build( 'gcc-6', 'x86', false ) }, 23 gcc_9_x64_old: { trigger_build( 'gcc-9', 'x64', false ) }, 24 gcc_8_x64_old: { trigger_build( 'gcc-8', 'x64', false ) }, 25 gcc_7_x64_old: { trigger_build( 'gcc-7', 'x64', false ) }, 26 gcc_6_x64_old: { trigger_build( 'gcc-6', 'x64', false ) }, 27 gcc_5_x64_old: { trigger_build( 'gcc-5', 'x64', false ) }, 28 clang_x64_old: { trigger_build( 'clang', 'x64', false ) }, 29 clang_x64_new: { trigger_build( 'clang', 'x64', true ) }, 30 ) 31 } 17 32 18 parallel ( 19 clang_x86: { trigger_build( 'gcc-8', 'x86' ) }, 20 gcc_5_x86: { trigger_build( 'gcc-7', 'x86' ) }, 21 gcc_6_x86: { trigger_build( 'gcc-6', 'x86' ) }, 22 gcc_9_x64: { trigger_build( 'gcc-9', 'x64' ) }, 23 gcc_8_x64: { trigger_build( 'gcc-8', 'x64' ) }, 24 gcc_7_x64: { trigger_build( 'gcc-7', 'x64' ) }, 25 gcc_6_x64: { trigger_build( 'gcc-6', 'x64' ) }, 26 gcc_5_x64: { trigger_build( 'gcc-5', 'x64' ) }, 27 clang_x64: { trigger_build( 'clang', 'x64' ) }, 28 ) 33 stage('Package') { 34 trigger_dist( commitId, currentBuild.number.toString() ) 29 35 } 30 36 } … … 59 65 //=========================================================================================================== 60 66 61 def trigger_build(String cc, String arch ) {67 def trigger_build(String cc, String arch, boolean new_ast) { 62 68 def result = build job: 'Cforall/master', \ 63 69 parameters: [ \ … … 68 74 name: 'Architecture', \ 69 75 value: arch], \ 76 [$class: 'BooleanParameterValue', \ 77 name: 'NewAST', \ 78 value: new_ast], \ 70 79 [$class: 'BooleanParameterValue', \ 71 80 name: 'RunAllTests', \ … … 79 88 [$class: 'BooleanParameterValue', \ 80 89 name: 'Publish', \ 81 value: true], \90 value: true], \ 82 91 [$class: 'BooleanParameterValue', \ 83 92 name: 'Silent', \ … … 94 103 } 95 104 96 //Helper routine to collect information about the git history 97 def collect_git_info() { 105 def trigger_dist(String commitId, String buildNum) { 106 def result = build job: 'Cforall_Distribute_Ref', \ 107 parameters: [ \ 108 string(name: 'GitRef', value: commitId), \ 109 string(name: 'Build' , value: buildNum) \ 110 ], \ 111 propagate: false 98 112 99 //create the temporary output directory in case it doesn't already exist 100 def out_dir = pwd tmp: true 101 sh "mkdir -p ${out_dir}" 113 echo(result.result) 102 114 103 //parse git logs to find what changed104 dir("../Cforall_Full_Build@script") {105 sh "git reflog > ${out_dir}/GIT_COMMIT"115 if(result.result != 'SUCCESS') { 116 sh("wget -q -O - https://cforall.uwaterloo.ca/jenkins/job/Cforall_Distribute_Ref/${result.number}/consoleText") 117 error(result.result) 106 118 } 107 git_reflog = readFile("${out_dir}/GIT_COMMIT")108 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1]109 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2]110 119 } 111 120
Note:
See TracChangeset
for help on using the changeset viewer.