- Timestamp:
- Jul 12, 2016, 3:49:01 PM (8 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:
- ccd5b12
- Parents:
- 1b8c156
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
r1b8c156 r6003581 1 1 #!groovy 2 2 3 3 //=========================================================================================================== 4 // Main compilation routines 5 //=========================================================================================================== 4 6 def push_build() { 5 7 //Don't use the build_stage function which outputs the compiler … … 23 25 } 24 26 27 //=========================================================================================================== 28 // Main loop of the compilation 29 //=========================================================================================================== 30 node ('master'){ 31 try { 32 //Prevent the build from exceeding 30 minutes 33 timeout(60) { 34 35 //Wrap build to add timestamp to command line 36 wrap([$class: 'TimestamperBuildWrapper']) { 37 38 build job: 'Cforall/master', \ 39 parameters: [ \ 40 [$class: 'BooleanParameterValue', \ 41 name: 'isFullBuild', \ 42 value: true], \ 43 [$class: 'StringParameterValue', \ 44 name: 'buildArchitecture', \ 45 value: '64-bit'] \ 46 ] 47 48 //Push latest changes to do-lang repo 49 //push_build() 50 } 51 } 52 } 53 54 //If an exception is caught we need to change the status and remember to 55 //attach the build log to the email 56 catch (Exception caughtError) { 57 //rethrow error later 58 err = caughtError 59 60 //Store the result of the build log 61 currentBuild.result = "${status_prefix} FAILURE".trim() 62 63 //Send email to notify the failure 64 //promote_email(currentBuild.result) 65 } 66 67 finally { 68 //Must re-throw exception to propagate error 69 if (err) { 70 throw err 71 } 72 } 73 } 74 75 //=========================================================================================================== 76 //Routine responsible of sending the email notification once the build is completed 77 //=========================================================================================================== 25 78 26 79 //Email notification on a full build failure
Note: See TracChangeset
for help on using the changeset viewer.