diff options
| author | liuxueli <[email protected]> | 2020-06-17 13:52:14 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-06-17 13:52:14 +0800 |
| commit | da977cb2b563382e63445c4f019e632117bd04b0 (patch) | |
| tree | 832e948d1939f9e77aa752a01f1ae6fddb65aead | |
| parent | 10e6f7037ed77b07ce535eaf22df4350da02b74c (diff) | |
将tsg_master的调试符号上传至Sentryv1.3.1.20.07
| -rw-r--r-- | .gitlab-ci.yml | 1 | ||||
| -rw-r--r-- | 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 |
