Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    r5ae36ed r155cce0f  
    9999        //attach the build log to the email
    100100        catch (Exception caughtError) {
    101                 echo('error caught')
    102 
    103101                //rethrow error later
    104102                err = caughtError
    105103
    106104                //Store the result of the build log
    107                 currentBuild.result = 'FAILURE'
     105                currentBuild.result = "${status_prefix} FAILURE".trim()
    108106
    109107                //Send email to notify the failure
    110                 promote_failure_email()
     108                promote_email(currentBuild.result)
    111109        }
    112110
     
    123121
    124122//Email notification on a full build failure
    125 def promote_failure_email() {
    126         echo('notifying users')
    127 
     123def promote_email(String status) {
    128124        //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
    129125        //Configurations for email format
     
    138134- Status --------------------------------------------------------------
    139135
    140 PROMOTE FAILURE
     136PROMOTE FAILURE - ${status}
    141137"""
    142138
Note: See TracChangeset for help on using the changeset viewer.