Changeset 094a42c


Ignore:
Timestamp:
Jul 31, 2018, 11:41:03 AM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
bdc154b
Parents:
0eb13567
Message:

Jenkins sandbox now shows preview of the email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r0eb13567 r094a42c  
    7070        finally {
    7171                //Send email with final results if this is not a full build
    72                 if( do_sendemail && !bIsSandbox ) {
     72                if( do_sendemail ) {
    7373                        echo 'Notifying users of result'
    74                         email(currentBuild.result, log_needed)
     74                        email(currentBuild.result, log_needed, bIsSandbox)
    7575                }
    7676
     
    339339//===========================================================================================================
    340340//Standard build email notification
    341 def email(String status, boolean log) {
     341def email(String status, boolean log, boolean bIsSandbox) {
    342342        //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
    343343        //Configurations for email format
     
    382382        def email_to = "cforall@lists.uwaterloo.ca"
    383383
    384         //send email notification
    385         emailext body: email_body, subject: email_subject, to: email_to, attachLog: log
    386 }
     384        if( !bIsSandbox ) {
     385                //send email notification
     386                emailext body: email_body, subject: email_subject, to: email_to, attachLog: log
     387        } else {
     388                echo "Would send email to: ${email_to}"
     389                echo "With title: ${email_subject}"
     390                echo "Content: \n${email_body}"
     391        }
     392}
Note: See TracChangeset for help on using the changeset viewer.