- Timestamp:
- Jul 15, 2016, 7:12:12 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:
- a2f86e9
- Parents:
- ad5b73e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
rad5b73e r121f499 28 28 // Main loop of the compilation 29 29 //=========================================================================================================== 30 30 31 node ('master') { 31 32 try { … … 71 72 72 73 if (result.result != 'SUCCESS') { 73 echo( 'Build Succede d' )74 echo( 'Build Succede' ) 74 75 } 75 76 } … … 80 81 } 81 82 } 82 }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 = caughtError88 83 89 //Store the result of the build log 90 currentBuild.result = "${status_prefix} FAILURE".trim() 84 //If an exception is caught we need to change the status and remember to 85 //attach the build log to the email 86 catch (Exception caughtError) { 87 //rethrow error later 88 err = caughtError 91 89 92 //Send email to notify the failure 93 promote_email(currentBuild.result) 94 } 90 //Store the result of the build log 91 currentBuild.result = "${status_prefix} FAILURE".trim() 95 92 96 finally { 97 //Must re-throw exception to propagate error 98 if (err) { 99 throw err 93 //Send email to notify the failure 94 promote_email(currentBuild.result) 95 } 96 97 finally { 98 //Must re-throw exception to propagate error 99 if (err) { 100 throw err 101 } 100 102 } 101 103 } 102 103 104 //=========================================================================================================== 104 105 //Routine responsible of sending the email notification once the build is completed
Note: See TracChangeset
for help on using the changeset viewer.