Changes in / [e394618:72e2ea0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/FullBuild
re394618 r72e2ea0 99 99 //attach the build log to the email 100 100 catch (Exception caughtError) { 101 echo('error caught') 102 101 103 //rethrow error later 102 104 err = caughtError 103 105 104 106 //Store the result of the build log 105 currentBuild.result = "${status_prefix} FAILURE".trim()107 currentBuild.result = 'FAILURE' 106 108 107 109 //Send email to notify the failure 108 promote_ email(currentBuild.result)110 promote_failure_email() 109 111 } 110 112 … … 121 123 122 124 //Email notification on a full build failure 123 def promote_email(String status) { 125 def promote_failure_email() { 126 echo('notifying users') 127 124 128 //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line 125 129 //Configurations for email format … … 134 138 - Status -------------------------------------------------------------- 135 139 136 PROMOTE FAILURE - ${status}140 PROMOTE FAILURE 137 141 """ 138 142
Note: See TracChangeset
for help on using the changeset viewer.