- sh 'make --keep-going check || true'
- sh 'mkdir -p "$WORKSPACE/tap/ust-2.12"'
- sh 'rsync -a --exclude "test-suite.log" --include \'*/\' --include \'*.log\' --exclude=\'*\' tests/ "$WORKSPACE/tap/ust-2.12"'
+ /*
+ * This will mark the stage as FAILED if the test suite is not
+ * successful but will continue the execution of the steps.
+ */
+ catchError {
+ sh "make --keep-going check"
+ }
+ }
+ }
+
+ post {
+ always {
+ dir("src/tools/stable-2.12") {
+ sh 'mkdir -p "${WORKSPACE}/tap/ust-2.12"'
+ sh 'rsync -a --exclude "test-suite.log" --include \'*/\' --include \'*.log\' --exclude=\'*\' tests/ "${WORKSPACE}/tap/ust-2.12"'
+
+ sh 'mkdir -p "${WORKSPACE}/log/ust-2.12"'
+ sh 'rsync -a --include "test-suite.log" --include \'*/\' --exclude=\'*\' tests/ "${WORKSPACE}/log/ust-2.12"'
+ }