diff options
author | Alexander Kyte <alexmkyte@gmail.com> | 2018-10-23 18:24:26 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-10-23 18:24:26 +0300 |
commit | 109563930d6559e3ade2c8f652f21574ea43ad1d (patch) | |
tree | 083bdc5d74f542d081438fbd520f05050eb385aa /scripts/ci | |
parent | 5de2976c1168f402567380e77536482d58ae68c9 (diff) |
[crash] Add mono_crash uploader for Sentry (#10840)
* [crash] Report which thread was crashing
* [crash] Added upload-to-sentry tool
* [crash] Add sentry uploader step to telemetry
Diffstat (limited to 'scripts/ci')
-rwxr-xr-x | scripts/ci/run-jenkins.sh | 2 | ||||
-rwxr-xr-x | scripts/ci/run-upload-sentry.sh | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/scripts/ci/run-jenkins.sh b/scripts/ci/run-jenkins.sh index a12c9820a45..22e0bf67b06 100755 --- a/scripts/ci/run-jenkins.sh +++ b/scripts/ci/run-jenkins.sh @@ -270,3 +270,5 @@ elif [[ ${CI_TAGS} == *'mac-sdk'* ]]; then ${MONO_REPO_ROOT}/sc elif [[ ${CI_TAGS} == *'no-tests'* ]]; then exit 0; else make check-ci; fi + +${MONO_REPO_ROOT}/scripts/ci/run-upload-sentry.sh diff --git a/scripts/ci/run-upload-sentry.sh b/scripts/ci/run-upload-sentry.sh new file mode 100755 index 00000000000..2527b53a34d --- /dev/null +++ b/scripts/ci/run-upload-sentry.sh @@ -0,0 +1,15 @@ +#!/bin/bash -e +export TESTCMD=`dirname "${BASH_SOURCE[0]}"`/run-step.sh + +export MONO_SENTRY_ROOT=`dirname "${BASH_SOURCE[0]}/../../"` + +if [[ ${CI_TAGS} == *'win-'* ]]; +then + echo "Skipping telemetry phase due to arch" +elif [[ -n "${MONO_SENTRY_URL}" ]] +then + # Define MONO_SENTRY_URL and MONO_SENTRY_OS in environment + ${TESTCMD} --label=sentry-telemetry-upload --timeout=10m make -C mcs/tools/upload-to-sentry upload-crashes MONO_SENTRY_ROOT="$MONO_REPO_ROOT" +else + echo "Skipping telemetry phase because URL missing" +fi |