Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/run-upload-sentry.sh')
-rwxr-xr-xscripts/ci/run-upload-sentry.sh15
1 files changed, 15 insertions, 0 deletions
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