Skip to content

Commit 78968b9

Browse files
wtrockiGustavo Bazan
andauthored
CLOUDP-309394 - Increase postman upload timelines (#631)
Co-authored-by: Gustavo Bazan <[email protected]>
1 parent e3c62a6 commit 78968b9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

tools/postman/scripts/upload-collection.sh

Lines changed: 15 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}" \
@@ -80,7 +86,14 @@ else
8086
--header 'X-API-Key: **********'
8187
--data ${collection_transformed_path}"
8288

83-
curl --show-error --fail --retry 5 --retry-all-errors --silent --request PUT \
89+
curl --show-error \
90+
--retry 10 \
91+
--retry-delay 30 \
92+
--retry-max-time 300 \
93+
--retry-all-errors \
94+
--fail \
95+
--silent \
96+
--request PUT \
8497
--location "https://api.getpostman.com/collections/${collection_id}" \
8598
--header "Content-Type: application/json" \
8699
--header "X-API-Key: ${POSTMAN_API_KEY}" \

0 commit comments

Comments
 (0)