From e2cd27910222b4dc353f0c0856090ee5f60c7635 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Tue, 23 Apr 2024 09:34:39 +0800 Subject: [PATCH] fix(apps/prod/tekton/configs/triggers): fix trigger `git-push-pingcap-qe-artifacts` (#1115) Signed-off-by: wuhuizuo Signed-off-by: wuhuizuo --- .../triggers/triggers/PingCAP-QE/artifacts/git-push.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/prod/tekton/configs/triggers/triggers/PingCAP-QE/artifacts/git-push.yaml b/apps/prod/tekton/configs/triggers/triggers/PingCAP-QE/artifacts/git-push.yaml index 4891d9c25..3100b755a 100644 --- a/apps/prod/tekton/configs/triggers/triggers/PingCAP-QE/artifacts/git-push.yaml +++ b/apps/prod/tekton/configs/triggers/triggers/PingCAP-QE/artifacts/git-push.yaml @@ -38,11 +38,14 @@ spec: params: - name: SCRIPT value: | + url="$(tt.params.git-url)" org=${url#https://github.com/} org=${org%/*} repo=${url##*/} repo=${repo%.git} branch="$(tt.params.git-ref)" + echo "Downloading from: https://github.com/${org}/${repo}/archive/${branch}.zip" + wget "https://github.com/${org}/${repo}/archive/${branch}.zip" -O - | unzip - ks3util sync "${repo}-${branch}" ks3://ee-fileserver/download/raw.githubusercontent.com/${org}/${repo}/${branch}