Changeset 1e34653


Ignore:
Timestamp:
May 30, 2016, 11:02:34 AM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
19ad15b
Parents:
ed091cd
Message:

now only email build logs on build failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    red091cd r1e34653  
    55node {
    66        checkout scm
    7         sh 'git clean -f'
     7        sh 'git clean -dfq'
    88}
    99
     
    1313        //configure the conpilation
    1414        try {
    15                 sh 'git clean -dfq'
    1615                sh 'make maintainer-clean > /dev/null'
    1716                sh 'CC=gcc-4.9 CXX=g++-4.9 ./configure > /dev/null'
    1817                sh 'make -j 8'
    19                 email("SUCCESS")
     18                email("SUCCESS", false)
    2019        } catch (Exception e) {
    21                 email("FAILURE")
     20                email("FAILURE", true)
    2221                throw e;
    2322        }
    2423}
    2524
    26 def email(String status) {
     25def email(String status, Bool log) {
    2726        //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
    2827        //Configurations for email format
     
    3736        The branch ${env.BRANCH_NAME} has been updated.
    3837
    39         Those revisions listed above that are new to this repository have
    40         not appeared on any other notification email; so we list those
    41         revisions in full, below.
    42 
    4338        Check console output at ${env.BUILD_URL} to view the results."""
    4439
     
    4641
    4742        //send email notification
    48         emailext body: email_body, subject: email_subject, to: email_to, attachLog: true
     43        emailext body: email_body, subject: email_subject, to: email_to, attachLog: log
    4944}
Note: See TracChangeset for help on using the changeset viewer.