File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,16 @@ func_repo_upload() {
109109 # ${1} - local path
110110 # ${2} - bucket name
111111 # ${3} - COS path
112- coscli -e " ${VAR_COS_ENDPOINT} " rm -r -f " cos://${2} /packages/${3} "
112+ coscli -e " ${VAR_COS_ENDPOINT} " rm -r -f " cos://${2} /packages/${3} " || true
113113 coscli -e " ${VAR_COS_ENDPOINT} " cp -r " ${1} " " cos://${2} /packages/${3} "
114114}
115115
116116func_repo_publish () {
117117 # ${1} - CI bucket
118118 # ${2} - repo publish bucket
119119 # ${3} - COS path
120- coscli -e " ${VAR_COS_ENDPOINT} " rm -r -f " cos://${2} /packages/${3} "
121- coscli -e " ${VAR_COS_ENDPOINT} " cp -r " cos://${1} /packages/${3} " " cos://${2} /packages"
120+ coscli -e " ${VAR_COS_ENDPOINT} " rm -r -f " cos://${2} /packages/${3} " || true
121+ coscli -e " ${VAR_COS_ENDPOINT} " cp -r " cos://${1} /packages/${3} " " cos://${2} /packages/ ${3} "
122122}
123123
124124# =======================================
You can’t perform that action at this time.
0 commit comments