From 26d7da935bdf92aeb4d4ca0252d5d432bf6455c4 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Wed, 5 Apr 2023 17:44:14 +0200 Subject: BUILD-2798 Move after_failure expressions to condition --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 3a6fb4a00b0..a94642be156 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,8 @@ notifications: secure: PCekbN71ZmuOt82JUFmlhzxlx3wrXucSIpvxxWdZn9lfsPYQAtXCoOESaHjIVIpggsC5HSAic3HiedsWbuDk/XojmPrDCrfjgYG2wiuSuQlAa60WvzTPqXdRmUXyMQgItaAQbRfZP7kN9No/v8TZDfg5kT3i9ewy0bsfExpjAuo= on_start: always +# This is a temporary change as Travis is currently executing this body even +# when the job run successfully (support ticket #44617). +# The changes should be reverted once we have a proper solution. after_failure: - - source ./.travis/setup_environment.sh - - notify_burgr "build" "build" "$TRAVIS_JOB_WEB_URL" "$(cat /tmp/build_start_time)" "$(date --utc +%FT%TZ)" "failed" || true + - '[[ $TRAVIS_TEST_RESULT = 1 ]] && source ./.travis/setup_environment.sh && notify_burgr "build" "build" "$TRAVIS_JOB_WEB_URL" "$(cat /tmp/build_start_time)" "$(date --utc +%FT%TZ)" "failed" || true' -- cgit v1.2.3