Changeset 3e93c00 for Jenkinsfile


Ignore:
Timestamp:
Aug 15, 2019, 11:28:03 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
4c1b9ea8
Parents:
ddee972
Message:

Fix archiving to happen on errors not on success

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    rddee972 r3e93c00  
    164164        build_stage('Test: full', Settings.RunAllTests) {
    165165                dir (BuildDir) {
    166                         //Run the tests from the tests directory
    167                         sh """make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/debug"""
    168                         sh """make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no  archiveerrors=${BuildDir}/tests/crashes/nodebug"""
    169 
    170                         def must_archive = fileExists "${BuildDir}/tests/crashes"
    171                         if(must_archive) {
     166                        try {
     167                                //Run the tests from the tests directory
     168                                sh """make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/debug"""
     169                                sh """make --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no  archiveerrors=${BuildDir}/tests/crashes/nodebug"""
     170                        }
     171                        catch (Exception err) {
     172                                echo "Archiving core dumps"
    172173                                archiveArtifacts artifacts: "${BuildDir}/tests/crashes", fingerprint: true
     174                                throw err
    173175                        }
    174176                }
Note: See TracChangeset for help on using the changeset viewer.