Changeset d3d0069


Ignore:
Timestamp:
May 30, 2016, 10:28:13 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:
d37fc7b
Parents:
f61958d
Message:

testing exceptions to react on build failures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rf61958d rd3d0069  
    1212node ('master'){
    1313        //configure the conpilation
    14         sh 'make maintainer-clean > /dev/null'
    15         sh 'CC=gcc-4.9 CXX=g++-4.9 ./configure > /dev/null'
    16         sh 'make -j 8'
    17         step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'tdelisle@uwaterloo.ca', sendToIndividuals: false])
    18         error 'testing'
     14        try {
     15                sh 'make maintainer-clean > /dev/null'
     16                sh 'CC=gcc-4.9 CXX=g++-4.9 ./configure'
     17                sh 'make -j 8'
     18                echo "Success"
     19        } catch (Exception e) {
     20                echo "Failed"
     21        }
    1922}
    2023
    21 stage 'Notify'
    22 node {
    23         //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
    24         //Configurations for email format
    25         def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase()
    26 
    27         def email_subject = "[${project_name} git] - branch ${env.BRANCH_NAME} - Build # ${env.BUILD_NUMBER} - BUILD_STATUS!"
    28         def email_body = """This is an automated email from the Jenkins build machine. It was
    29         generated because of a git hooks/post-receive script following
    30         a ref change was pushed to the repository containing
    31         the project "UNNAMED PROJECT".
    32 
    33         The branch ${env.BRANCH_NAME} has been updated
    34                via  GIT_COMMIT (commit)
    35               from  GIT_PREVIOUS_COMMIT (commit)
    36 
    37         Those revisions listed above that are new to this repository have
    38         not appeared on any other notification email; so we list those
    39         revisions in full, below.
    40 
    41         Check console output at ${env.BUILD_URL} to view the results."""
    42 
    43         def email_to = 'tdelisle@uwaterloo.ca'
    44 
    45         //send email notification
    46         emailext body: email_body, subject: email_subject, to: email_to, attachLog: true
    47 }
     24// stage 'Notify'
     25// node {
     26//      //Since tokenizer doesn't work, figure stuff out from the environnement variables and command line
     27//      //Configurations for email format
     28//      def project_name = (env.JOB_NAME =~ /(.+)\/.+/)[0][1].toLowerCase()
     29//
     30//      def email_subject = "[${project_name} git] - branch ${env.BRANCH_NAME} - Build # ${env.BUILD_NUMBER} - BUILD_STATUS!"
     31//      def email_body = """This is an automated email from the Jenkins build machine. It was
     32//      generated because of a git hooks/post-receive script following
     33//      a ref change was pushed to the repository containing
     34//      the project "UNNAMED PROJECT".
     35//
     36//      The branch ${env.BRANCH_NAME} has been updated
     37//             via  GIT_COMMIT (commit)
     38//            from  GIT_PREVIOUS_COMMIT (commit)
     39//
     40//      Those revisions listed above that are new to this repository have
     41//      not appeared on any other notification email; so we list those
     42//      revisions in full, below.
     43//
     44//      Check console output at ${env.BUILD_URL} to view the results."""
     45//
     46//      def email_to = 'tdelisle@uwaterloo.ca'
     47//
     48//      //send email notification
     49//      emailext body: email_body, subject: email_subject, to: email_to, attachLog: true
     50// }
Note: See TracChangeset for help on using the changeset viewer.