File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,15 @@ kubectl exec -it "$exec_pod_name" -n atlassian -- docker run --shm-size=4g -v "/
67
67
sleep 10
68
68
69
69
echo " INFO: Copy results folder from the exec env pod to local"
70
- kubectl exec -n atlassian " $exec_pod_name " -- tar cf - -C /dc-app-performance-toolkit/app results | tar xf - -C /data-center-terraform/dc-app-performance-toolkit/app/results --strip-components=1
70
+ for _ in {1..3}; do
71
+ if kubectl exec -n atlassian " $exec_pod_name " --request-timeout=60s -- tar czf - -C /dc-app-performance-toolkit/app results | tar xzf - -C /data-center-terraform/dc-app-performance-toolkit/app/results --strip-components=1; then
72
+ break
73
+ else
74
+ echo " Copying failed, retrying..."
75
+ sleep 5
76
+ fi
77
+ done
78
+
71
79
if [[ $? -ne 0 ]]; then
72
80
echo " ERROR: Copy results folder failed"
73
81
exit 1
Original file line number Diff line number Diff line change 30
30
echo " INFO: Execution environment pod name: $exec_pod_name "
31
31
32
32
echo " INFO: Copy results folder from the exec env pod to local"
33
- kubectl exec -n atlassian " $exec_pod_name " -- tar cf - -C /dc-app-performance-toolkit/app results | tar xf - -C /data-center-terraform/dc-app-performance-toolkit/app/results --strip-components=1
33
+ for _ in {1..3}; do
34
+ if kubectl exec -n atlassian " $exec_pod_name " --request-timeout=60s -- tar czf - -C /dc-app-performance-toolkit/app results | tar xzf - -C /data-center-terraform/dc-app-performance-toolkit/app/results --strip-components=1; then
35
+ break
36
+ else
37
+ echo " Copying failed, retrying..."
38
+ sleep 5
39
+ fi
40
+ done
41
+
34
42
if [[ $? -ne 0 ]]; then
35
43
echo " ERROR: Copy results folder failed"
36
44
exit 1
You can’t perform that action at this time.
0 commit comments