Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/FullBuild

    r155cce0f r5ae36ed  
    9999        //attach the build log to the email
    100100        catch (Exception caughtError) {
     101                echo('error caught')
     102
    101103                //rethrow error later
    102104                err = caughtError
    103105
    104106                //Store the result of the build log
    105                 currentBuild.result = "${status_prefix} FAILURE".trim()
     107                currentBuild.result = 'FAILURE'
    106108
    107109                //Send email to notify the failure
    108                 promote_email(currentBuild.result)
     110                promote_failure_email()
    109111        }
    110112
     
    121123
    122124//Email notification on a full build failure
    123 def promote_email(String status) {
     125def promote_failure_email() {
     126        echo('notifying users')
     127
    124128        //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
    125129        //Configurations for email format
     
    134138- Status --------------------------------------------------------------
    135139
    136 PROMOTE FAILURE - ${status}
     140PROMOTE FAILURE
    137141"""
    138142
Note: See TracChangeset for help on using the changeset viewer.