aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2023-04-05 17:41:54 +0200
committersonartech <sonartech@sonarsource.com>2023-04-05 20:03:28 +0000
commit09b0707a71f250ca048694525e0846012aef409d (patch)
treebe8962675776bb11b4542913d36d18c73da111dd
parentfdacca08355f036ce151064baaa32e4831190d3c (diff)
downloadsonarqube-branch-10.0.tar.gz
sonarqube-branch-10.0.zip
BUILD-2798 Move after_failure expressions to conditionbranch-10.0
-rw-r--r--.travis.yml6
1 files changed, 4 insertions, 2 deletions
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'