Changeset 18a1419 for Jenkins/FullBuild
- Timestamp:
- Jul 15, 2016, 6:22:12 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1d57215
- Parents:
- b8303f44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified Jenkins/FullBuild ¶
rb8303f44 r18a1419 28 28 // Main loop of the compilation 29 29 //=========================================================================================================== 30 node ('master'){31 try {32 //Prevent the build from exceeding 30 minutes33 timeout(60) {34 30 35 //Wrap build to add timestamp to command line 36 wrap([$class: 'TimestamperBuildWrapper']) { 31 try { 32 //Prevent the build from exceeding 30 minutes 33 timeout(60) { 37 34 38 stage 'Build' 35 //Wrap build to add timestamp to command line 36 wrap([$class: 'TimestamperBuildWrapper']) { 39 37 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 ) 38 stage 'Build' 64 39 65 //Push latest changes to do-lang repo 66 //push_build() 67 } 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() 68 79 } 69 80 } 81 } 70 82 71 72 73 74 75 83 //If an exception is caught we need to change the status and remember to 84 //attach the build log to the email 85 catch (Exception caughtError) { 86 //rethrow error later 87 err = caughtError 76 88 77 78 89 //Store the result of the build log 90 currentBuild.result = "${status_prefix} FAILURE".trim() 79 91 80 81 //promote_email(currentBuild.result)82 92 //Send email to notify the failure 93 promote_email(currentBuild.result) 94 } 83 95 84 finally { 85 //Must re-throw exception to propagate error 86 if (err) { 87 throw err 88 } 96 finally { 97 //Must re-throw exception to propagate error 98 if (err) { 99 throw err 89 100 } 90 101 }
Note: See TracChangeset
for help on using the changeset viewer.