Changeset 734891d


Ignore:
Timestamp:
Feb 22, 2017, 5:33:53 PM (5 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, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
14ce3392, 9d169f1
Parents:
692de479
Message:

Fixed status prefix for email notification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r692de479 r734891d  
    99        def err = null
    1010        def log_needed = false
     11
     12        stage_name              = ''
    1113
    1214        compiler                = null
     
    6163
    6264                //Store the result of the build log
    63                 currentBuild.result = "${status_prefix} FAILURE".trim()
     65                currentBuild.result = "${stage_name} FAILURE".trim()
    6466        }
    6567
    6668        finally {
    67                 echo 'Build Completed'
    68 
    6969                //Send email with final results if this is not a full build
    70                 if( !do_sendemail && !bIsSandbox ) {
     70                if( (!do_sendemail) && (!bIsSandbox) ) {
    7171                        echo 'Notifying users of result'
    7272                        email(currentBuild.result, log_needed)
    7373                }
     74
     75                echo 'Build Completed'
    7476
    7577                /* Must re-throw exception to propagate error */
     
    165167}
    166168
     169def build_stage(String name) {
     170        stage_name = name
     171        stage name
     172}
     173
    167174def notify_server() {
    168175        sh 'curl --silent -X POST http://plg2:8082/jenkins/notify > /dev/null'
     
    235242//Compilation script is done here but environnement set-up and error handling is done in main loop
    236243def checkout() {
    237         stage 'Checkout'
     244        build_stage'Checkout'
    238245                //checkout the source code and clean the repo
    239246                checkout scm
     
    247254
    248255def build() {
    249         stage 'Build'
     256        build_stage'Build'
    250257       
    251258                def install_dir = pwd tmp: true
     
    262269
    263270def test() {
    264         stage 'Test'
     271        build_stage'Test'
    265272
    266273                //Run the tests from the tests directory
     
    275282
    276283def benchmark() {
    277         stage 'Benchmark'
     284        build_stage'Benchmark'
    278285
    279286                if( !do_benchmark ) return
     
    287294
    288295def clean() {
    289         stage 'Cleanup'
     296        build_stage'Cleanup'
    290297
    291298                //do a maintainer-clean to make sure we need to remake from scratch
     
    294301
    295302def build_doc() {
    296         stage 'Documentation'
     303        build_stage'Documentation'
    297304
    298305                if( !do_doc ) return
     
    308315
    309316def publish() {
    310         stage 'Publish'
     317        build_stage'Publish'
    311318
    312319                if( !do_publish ) return
Note: See TracChangeset for help on using the changeset viewer.