瀏覽代碼

BUILD-2798 Move after_failure expressions to condition

branch-10.0
Jeremy Davis 1 年之前
父節點
當前提交
09b0707a71
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      .travis.yml

+ 4
- 2
.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'

Loading…
取消
儲存