Changes in Jenkinsfile [8f99233:af43394]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r8f99233 raf43394 7 7 node('master') { 8 8 // Globals 9 BuildDir = pwd tmp: true10 SrcDir = pwd tmp: false9 BuildDir = null 10 SrcDir = null 11 11 Settings = null 12 12 StageName = '' … … 46 46 publish() 47 47 } 48 49 // Update the build directories when exiting the node50 BuildDir = pwd tmp: true51 SrcDir = pwd tmp: false52 48 53 49 notify_server(45) … … 153 149 dir (BuildDir) { 154 150 //Append bench results 155 sh " ${SrcDir}/jenkins.sh ${GitNewRef} ${Architecture} ${BuildDir}/bench.json"151 sh "make --no-print-directory -C benchmark jenkins githash=${Settings.GitNewRef} arch=${Settings.Architecture} | tee ${SrcDir}/bench.json" 156 152 } 157 153 } … … 179 175 180 176 //Then publish the results 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'177 sh 'curl --silent --show-error -H \'Content-Type: application/json\' --data @bench.json https://cforall.uwaterloo.ca:8082/jenkins/publish > /dev/null || true' 182 178 } 183 179 } … … 189 185 if (!Settings || !Settings.GitOldRef || !Settings.GitNewRef) return "\nERROR retrieveing git information!\n" 190 186 191 sh "${SrcDir}/tools/PrettyGitLogs.sh ${ SrcDir} ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}"187 sh "${SrcDir}/tools/PrettyGitLogs.sh ${BuildDir} ${Settings.GitOldRef} ${Settings.GitNewRef}" 192 188 193 189 def gitUpdate = readFile("${BuildDir}/GIT_UPDATE") … … 302 298 switch( param.Architecture ) { 303 299 case 'x64': 304 this.Architecture = new Arch_Desc('x64', '--host=x86_64', ' x64')300 this.Architecture = new Arch_Desc('x64', '--host=x86_64', 'master') 305 301 break 306 302 case 'x86': 307 this.Architecture = new Arch_Desc('x86', '--host=i386', ' x86')303 this.Architecture = new Arch_Desc('x86', '--host=i386', 'master') 308 304 break 309 305 default : … … 381 377 ]]) 382 378 383 // It's unfortunate but it looks like we need to checkout the entire repo just to get the pretty git printer384 checkout scm385 386 379 final settings = new BuildSettings(params, env.BRANCH_NAME) 387 380 … … 411 404 catch (Exception caughtError) { 412 405 err = caughtError //rethrow error later 413 sh 'cat build/*.log'406 sh 'cat *.log' 414 407 } 415 408 finally {
Note: See TracChangeset
for help on using the changeset viewer.