]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-2798 Move after_failure expressions to condition branch-10.0
authorJeremy Davis <jeremy.davis@sonarsource.com>
Wed, 5 Apr 2023 15:41:54 +0000 (17:41 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 5 Apr 2023 20:03:28 +0000 (20:03 +0000)
.travis.yml

index 3a6fb4a00b0e56ce87862a11d487f2cafd350383..a94642be1569b9e696179423b2150c856783dcf9 100644 (file)
@@ -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'