aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2023-04-05 17:44:14 +0200
committersonartech <sonartech@sonarsource.com>2023-04-05 20:04:00 +0000
commit26d7da935bdf92aeb4d4ca0252d5d432bf6455c4 (patch)
treec6e40e4ff7ada7630a9c2bcc2798cf7abb8ac52c /.travis.yml
parent8aed3655150aa7b7e955a5c3c7e2b090f15eb441 (diff)
downloadsonarqube-26d7da935bdf92aeb4d4ca0252d5d432bf6455c4.tar.gz
sonarqube-26d7da935bdf92aeb4d4ca0252d5d432bf6455c4.zip
BUILD-2798 Move after_failure expressions to condition
Diffstat (limited to '.travis.yml')
-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'