From da977cb2b563382e63445c4f019e632117bd04b0 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 17 Jun 2020 13:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86tsg=5Fmaster=E7=9A=84=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E7=AC=A6=E5=8F=B7=E4=B8=8A=E4=BC=A0=E8=87=B3Sentry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 1 + ci/travis.sh | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6470a2..36955e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,6 +76,7 @@ release_build_release: BUILD_TYPE: RelWithDebInfo PACKAGE: 1 UPLOAD: 1 + SYMBOL_TARGET: tsg_master PULP3_REPO_NAME: tsg-stable-x86_64.el7 PULP3_DIST_NAME: tsg-stable-x86_64.el7 extends: .build_by_travis diff --git a/ci/travis.sh b/ci/travis.sh index 40a2780..270d91c 100644 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -57,8 +57,9 @@ if [ -n "${UPLOAD}" ]; then python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm fi -#if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then -# rpm -i tfe*debuginfo*.rpm -# cp /usr/lib/debug/opt/tsg/tfe/bin/tfe.debug /tmp/tfe.debuginfo.${CI_COMMIT_SHORT_SHA} -# sentry-cli upload-dif -t elf /tmp/tfe.debuginfo.${CI_COMMIT_SHORT_SHA} -#fi +if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then + rpm -i $SYMBOL_TARGET*debuginfo*.rpm + _symbol_file=`find /usr/lib/debug/ -name "$SYMBOL_TARGET*.so*.debug"` + cp $_symbol_file ${_symbol_file}info.${CI_COMMIT_SHORT_SHA} + sentry-cli upload-dif -t elf ${_symbol_file}info.${CI_COMMIT_SHORT_SHA} +fi