File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ CLOUDSMITH_REPO="${2}"
77CLOUDSMITH_USERNAME=" ${3} "
88export CLOUDSMITH_API_KEY=" ${4} "
99
10+ cloudsmith_push_args=(--sync-attempts 10 --wait-interval 5 --republish)
11+
1012# required to make python 3 work with cloudsmith script
1113export LC_ALL=C.UTF-8
1214export LANG=C.UTF-8
@@ -22,11 +24,11 @@ function upload_rpm {
2224 pkg_rel=$( echo " ${rev_filename} " | cut -d ' .' -f3 | rev)
2325 release_ver=" ${pkg_rel: 2} "
2426
25- cloudsmith push rpm --republish " ${CLOUDSMITH_REPO} /${distro} /${release_ver} " " ${1} "
27+ cloudsmith push rpm " ${cloudsmith_push_args[@]} " " ${CLOUDSMITH_REPO} /${distro} /${release_ver} " " ${1} "
2628}
2729
2830function upload_deb {
29- cloudsmith push deb --republish " ${CLOUDSMITH_REPO} /${2} /${3} " " ${1} "
31+ cloudsmith push deb " ${cloudsmith_push_args[@]} " " ${CLOUDSMITH_REPO} /${2} /${3} " " ${1} "
3032}
3133
3234function cloudsmith_upload {
You can’t perform that action at this time.
0 commit comments