Skip to content

Commit 348fe5d

Browse files
authored
Increase curl retry attempts and delay for new collection
1 parent b2e4817 commit 348fe5d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/postman/scripts/upload-collection.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ if [ "$collection_exists" = "false" ]; then
6363
--header 'Content-Type: application/json'
6464
--header 'X-API-Key: **********'
6565
--data ${collection_transformed_path}"
66-
curl --show-error --fail --retry 5 --retry-all-errors --silent \
66+
curl --show-error \
67+
--retry 10 \
68+
--retry-delay 30 \
69+
--retry-max-time 300 \
70+
--retry-all-errors \
71+
--fail \
72+
--silent \
6773
--location "https://api.getpostman.com/collections?workspace=${WORKSPACE_ID}" \
6874
--header "Content-Type: application/json" \
6975
--header "X-API-Key: ${POSTMAN_API_KEY}" \
@@ -84,8 +90,8 @@ else
8490
--retry 10 \
8591
--retry-delay 30 \
8692
--retry-max-time 300 \
87-
--fail \
8893
--retry-all-errors \
94+
--fail \
8995
--silent \
9096
--request PUT \
9197
--location "https://api.getpostman.com/collections/${collection_id}" \

0 commit comments

Comments
 (0)