Skip to content

Commit

Permalink
Jenkinsfile - collect logs after failures too
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Jun 13, 2023
1 parent 87ac14c commit 8efb413
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Jenkinsfile
Expand Up @@ -194,7 +194,7 @@ spec:
ls -la ${WORKSPACE}/bundles
'''
}
archiveArtifacts artifacts: 'bundles/*.zip'
archiveArtifacts artifacts: 'bundles/*.zip', onlyIfSuccessful: true
stash includes: 'bundles/*', name: 'build-bundles'
}
}
Expand All @@ -209,8 +209,12 @@ spec:
'''
}
}
archiveArtifacts artifacts: "**/server.log"
junit testResults: '**/*-reports/*.xml', allowEmptyResults: false
}
post {
always {
archiveArtifacts artifacts: "**/server.log", onlyIfSuccessful: false
junit testResults: '**/*-reports/*.xml', allowEmptyResults: false
}
}
}
stage('ant-tests') {
Expand Down

0 comments on commit 8efb413

Please sign in to comment.