Changeset 1cc4390
- Timestamp:
- Feb 7, 2019, 4:50:24 PM (6 years ago)
- Branches:
- deferred_resn
- Parents:
- 4cf2472
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r4cf2472 r1cc4390 4 4 // Main loop of the compilation 5 5 //=========================================================================================================== 6 node ('master'){ 7 6 7 node('master') { 8 8 // Globals 9 9 BuildDir = pwd tmp: true … … 26 26 Settings = prepare_build() 27 27 28 clean() 29 30 checkout() 31 32 notify_server(0) 33 34 build() 35 36 test() 37 38 benchmark() 39 40 build_doc() 41 42 publish() 28 node(Settings.Architecture.node) { 29 BuildDir = pwd tmp: true 30 SrcDir = pwd tmp: false 31 32 clean() 33 34 checkout() 35 36 notify_server(0) 37 38 build() 39 40 test() 41 42 benchmark() 43 44 build_doc() 45 46 publish() 47 } 48 49 // Update the build directories when exiting the node 50 BuildDir = pwd tmp: true 51 SrcDir = pwd tmp: false 43 52 44 53 notify_server(45) … … 75 84 } 76 85 } 77 78 86 //=========================================================================================================== 79 87 // Main compilation routines … … 145 153 dir (BuildDir) { 146 154 //Append bench results 147 sh " make --no-print-directory -C benchmark jenkins githash=${Settings.GitNewRef} arch=${Settings.Architecture} | tee ${SrcDir}/bench.json"155 sh "${SrcDir}/benchmark/jenkins.sh ${Settings.GitNewRef} ${Settings.Architecture} ${BuildDir}/bench.json" 148 156 } 149 157 } … … 171 179 172 180 //Then publish the results 173 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @ bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true'181 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @${BuildDir}/bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true' 174 182 } 175 183 } … … 181 189 if (!Settings || !Settings.GitOldRef || !Settings.GitNewRef) return "\nERROR retrieveing git information!\n" 182 190 183 sh "${SrcDir}/tools/PrettyGitLogs.sh ${ BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"191 sh "${SrcDir}/tools/PrettyGitLogs.sh ${SrcDir} ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}" 184 192 185 193 def gitUpdate = readFile("${BuildDir}/GIT_UPDATE") … … 250 258 public String name 251 259 public String flags 252 253 Arch_Desc(String name, String flags) { 260 public String node 261 262 Arch_Desc(String name, String flags, String node) { 254 263 this.name = name 255 264 this.flags = flags 265 this.node = node 256 266 } 257 267 } … … 292 302 switch( param.Architecture ) { 293 303 case 'x64': 294 this.Architecture = new Arch_Desc('x64', '--host=x86_64' )304 this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'x64') 295 305 break 296 306 case 'x86': 297 this.Architecture = new Arch_Desc('x86', '--host=i386' )307 this.Architecture = new Arch_Desc('x86', '--host=i386', 'x86') 298 308 break 299 309 default : … … 371 381 ]]) 372 382 383 // It's unfortunate but it looks like we need to checkout the entire repo just to get the pretty git printer 384 checkout scm 385 373 386 final settings = new BuildSettings(params, env.BRANCH_NAME) 374 387 … … 398 411 catch (Exception caughtError) { 399 412 err = caughtError //rethrow error later 400 sh 'cat *.log'413 sh 'cat build/*.log' 401 414 } 402 415 finally {
Note: See TracChangeset
for help on using the changeset viewer.