Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rabc2a643 r3bc59b7  
    5454        //attach the build log to the email
    5555        catch (Exception caughtError) {
    56                 // Store the result of the build log
    57                 currentBuild.result = "FAILURE"
    58 
    59                 // An error has occured, the build log is relevent
     56                //rethrow error later
     57                err = caughtError
     58
     59                echo err.toString()
     60
     61                //An error has occured, the build log is relevent
    6062                log_needed = true
    6163
    62                 // rethrow error later
    63                 err = caughtError
    64 
    65                 // print the error so it shows in the log
    66                 echo err.toString()
     64                //Store the result of the build log
     65                currentBuild.result = "${tools.StageName} FAILURE".trim()
    6766        }
    6867
Note: See TracChangeset for help on using the changeset viewer.