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