Changes in / [83dccdd:15b53fc]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
r83dccdd r15b53fc 28 28 // Main loop of the compilation 29 29 //=========================================================================================================== 30 node ('master'){ 31 try { 32 //Prevent the build from exceeding 30 minutes 33 timeout(60) { 30 34 31 try { 32 //Prevent the build from exceeding 30 minutes 33 timeout(60) { 35 //Wrap build to add timestamp to command line 36 wrap([$class: 'TimestamperBuildWrapper']) { 34 37 35 //Wrap build to add timestamp to command line 36 wrap([$class: 'TimestamperBuildWrapper']) { 38 stage 'Build' 37 39 38 stage 'Build' 40 parallel ( 41 x64: { node ('master') { 42 build job: 'Cforall/master', \ 43 parameters: [ \ 44 [$class: 'BooleanParameterValue', \ 45 name: 'isFullBuild', \ 46 value: true], \ 47 [$class: 'StringParameterValue', \ 48 name: 'buildArchitecture', \ 49 value: '64-bit'] \ 50 ] 51 }}, 52 x32: { node ('master') { 53 build job: 'Cforall/master', \ 54 parameters: [ \ 55 [$class: 'BooleanParameterValue', \ 56 name: 'isFullBuild', \ 57 value: true], \ 58 [$class: 'StringParameterValue', \ 59 name: 'buildArchitecture', \ 60 value: '32-bit'] \ 61 ] 62 }} 63 ) 39 64 40 results = [null, null] 41 42 parallel ( 43 x64: { 44 result[0] = build job: 'Cforall/master', \ 45 parameters: [ \ 46 [$class: 'BooleanParameterValue', \ 47 name: 'isFullBuild', \ 48 value: true], \ 49 [$class: 'StringParameterValue', \ 50 name: 'buildArchitecture', \ 51 value: '64-bit'] \ 52 ] 53 }, 54 x32: 55 { 56 result[1] = build job: 'Cforall/master', \ 57 parameters: [ \ 58 [$class: 'BooleanParameterValue', \ 59 name: 'isFullBuild', \ 60 value: true], \ 61 [$class: 'StringParameterValue', \ 62 name: 'buildArchitecture', \ 63 value: '32-bit'] \ 64 ] 65 } 66 ) 67 68 results.each { result -> 69 echo(result.result) 70 echo(result.absoluteUrl) 71 72 if (result.result != 'SUCCESS') { 73 echo( 'Build Succeded' ) 74 } 75 } 76 77 //Push latest changes to do-lang repo 78 push_build() 65 //Push latest changes to do-lang repo 66 //push_build() 67 } 79 68 } 80 69 } 81 }82 70 83 //If an exception is caught we need to change the status and remember to84 //attach the build log to the email85 catch (Exception caughtError) {86 //rethrow error later87 err = caughtError71 //If an exception is caught we need to change the status and remember to 72 //attach the build log to the email 73 catch (Exception caughtError) { 74 //rethrow error later 75 err = caughtError 88 76 89 //Store the result of the build log90 currentBuild.result = "${status_prefix} FAILURE".trim()77 //Store the result of the build log 78 currentBuild.result = "${status_prefix} FAILURE".trim() 91 79 92 //Send email to notify the failure93 promote_email(currentBuild.result)94 }80 //Send email to notify the failure 81 //promote_email(currentBuild.result) 82 } 95 83 96 finally { 97 //Must re-throw exception to propagate error 98 if (err) { 99 throw err 84 finally { 85 //Must re-throw exception to propagate error 86 if (err) { 87 throw err 88 } 100 89 } 101 90 } -
src/tests/test.py
r83dccdd r15b53fc 205 205 206 206 print(text, file = out); 207 sys.stdout.flush()208 sys.stderr.flush()209 210 207 211 208 #clean the workspace
Note: See TracChangeset
for help on using the changeset viewer.