File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,12 @@ 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
+ # Ensure the local results directory exists
71
+ local_results_dir=" /data-center-terraform/dc-app-performance-toolkit/app/results"
72
+ mkdir -p " $local_results_dir "
73
+
70
74
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
75
+ if kubectl exec -n atlassian " $exec_pod_name " --request-timeout=60s -- tar czf - -C /dc-app-performance-toolkit/app results | tar xzf - -C " $local_results_dir " --strip-components=1; then
72
76
break
73
77
else
74
78
echo " Copying failed, retrying..."
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
+ # Ensure the local results directory exists
34
+ local_results_dir=" /data-center-terraform/dc-app-performance-toolkit/app/results"
35
+ mkdir -p " $local_results_dir "
36
+
33
37
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
38
+ if kubectl exec -n atlassian " $exec_pod_name " --request-timeout=60s -- tar czf - -C /dc-app-performance-toolkit/app results | tar xzf - -C " $local_results_dir " --strip-components=1; then
35
39
break
36
40
else
37
41
echo " Copying failed, retrying..."
You can’t perform that action at this time.
0 commit comments