Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save themarwhal/7340ec3be56852669dae9b5c929b29c0 to your computer and use it in GitHub Desktop.
Save themarwhal/7340ec3be56852669dae9b5c929b29c0 to your computer and use it in GitHub Desktop.
sentry upload script
#!/bin/bash
C_BUILD=/home/vagrant/build/c
EXECS="session_manager/sessiond oai/oai_mme/mme sctpd/sctpd connection_tracker/connectiond"
for EXEC in $EXECS
do
EXEC_PATH="${C_BUILD}/${EXEC}"
echo "Uploading debug artifacts for $EXEC_PATH"
# Strip artifacts
objcopy --only-keep-debug "$C_BUILD/$EXEC" "$C_BUILD/$EXEC".debug
objcopy --strip-debug --strip-unneeded $C_BUILD/$EXEC
objcopy --add-gnu-debuglink=$C_BUILD/$EXEC.debug $C_BUILD/$EXEC
# Upload artifacts to Sentry
sentry-cli upload-dif --log-level=info --org=magma-sentry-testing --project=sentry-native-testing $C_BUILD/$EXEC.debug
sentry-cli upload-dif --log-level=info --org=magma-sentry-testing --project=sentry-native-testing $C_BUILD/$EXEC
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment