From 65c6fe22a72103921ef796e2c3479ccb22403498 Mon Sep 17 00:00:00 2001 From: wangyan Date: Tue, 23 Jan 2018 03:19:35 -0800 Subject: [PATCH] Fix bug for trigger harbor build with tag --- tests/integration.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration.sh b/tests/integration.sh index 4574b6b21..723ec6488 100755 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -98,8 +98,8 @@ echo "--------------------------------------------------" # # Put code here is because that it needs clean code to build installer. ## -if [ $DRONE_BRANCH == "master" ] || [ $DRONE_BRANCH == *"refs/tags"* ] || [ $DRONE_BRANCH == "release-"* ] || [ $DRONE_BRANCH == "pks-"* ]; then - if [ $DRONE_BUILD_EVENT == "push" ] || [ $DRONE_BUILD_EVENT == "tag" ]; then +if [[ $DRONE_BRANCH == "master" || $DRONE_BRANCH == *"refs/tags"* || $DRONE_BRANCH == "release-"* || $DRONE_BRANCH == "pks-"* ]]; then + if [[ $DRONE_BUILD_EVENT == "push" || $DRONE_BUILD_EVENT == "tag" ]]; then package_offline_installer upload_latest_build=true fi