From 032c726ff747b45b328eec8c37056c321b5ec6cb Mon Sep 17 00:00:00 2001 From: linxin Date: Fri, 28 Apr 2023 11:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=87=B3=E6=9C=80=E7=BB=88?= =?UTF-8?q?=E6=89=93=E5=8C=85=E5=A5=BD=E5=90=8E=E7=9A=84rpm=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/travis.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/travis.sh b/ci/travis.sh index ff4f3b6..e432f1d 100644 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -44,12 +44,12 @@ mv ../coredump-tools ../coredump-tools-${VERSION_ID} tar -czvf ./rpmbuild/SOURCES/coredump-tools-${VERSION_ID}.tar.gz ../coredump-tools-${VERSION_ID} cp ./script/coredump.spec ./rpmbuild/SPECS rpmbuild --define "_topdir `pwd`/rpmbuild" --define "_version ${VERSION_ID}" --define "_release release" -ba ./rpmbuild/SPECS/coredump.spec -dnf install -y tree -tree ../.. +cd /builds/linxin/coredump-tools-${VERSION_ID}/rpmbuild/RPMS/x86_64 +ls -halt ./*.rpm -# if [ -n "${UPLOAD}" ]; then -# cp ~/rpm_upload_tools.py ./ -# python3 rpm_upload_tools.py ${PULP3_RPM_REPO_NAME} ${PULP3_RPM_DIST_NAME} *.rpm -# fi +if [ -n "${UPLOAD}" ]; then + cp ~/rpm_upload_tools.py ./ + python3 rpm_upload_tools.py ${PULP3_RPM_REPO_NAME} ${PULP3_RPM_DIST_NAME} *.rpm +fi