|
87 | 87 | echo "==================== BEGIN: ~/run-tests-$attempt.log ====================" |
88 | 88 | echo "$test_output" |
89 | 89 | echo "==================== END: ~/run-tests-$attempt.log ======================" |
| 90 | + |
| 91 | + if ! mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ 2>/dev/null; then |
| 92 | + echo "Failed to move log file ~/run-tests-$attempt.log to integration-test/target/cluster-logs/. Skipping..." |
| 93 | + fi |
90 | 94 |
|
91 | 95 | if echo "$test_output" | grep -q "Could not transfer artifact"; then |
92 | 96 | if [ $attempt -lt $max_attempts ]; then |
@@ -172,13 +176,15 @@ jobs: |
172 | 176 | -am -PMultiClusterIT2ManualCreateSchema \ |
173 | 177 | -ntp >> ~/run-tests-$attempt.log && return 0 |
174 | 178 | test_output=$(cat ~/run-tests-$attempt.log) |
175 | | - |
176 | | - mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ |
177 | 179 |
|
178 | 180 | echo "==================== BEGIN: ~/run-tests-$attempt.log ====================" |
179 | 181 | echo "$test_output" |
180 | 182 | echo "==================== END: ~/run-tests-$attempt.log ======================" |
181 | 183 | |
| 184 | + if ! mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ 2>/dev/null; then |
| 185 | + echo "Failed to move log file ~/run-tests-$attempt.log to integration-test/target/cluster-logs/. Skipping..." |
| 186 | + fi |
| 187 | +
|
182 | 188 | if echo "$test_output" | grep -q "Could not transfer artifact"; then |
183 | 189 | if [ $attempt -lt $max_attempts ]; then |
184 | 190 | echo "Test failed with artifact transfer issue, attempt $attempt. Retrying in $retry_sleep seconds..." |
@@ -255,12 +261,14 @@ jobs: |
255 | 261 | -ntp >> ~/run-tests-$attempt.log && return 0 |
256 | 262 | test_output=$(cat ~/run-tests-$attempt.log) |
257 | 263 |
|
258 | | - mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ |
259 | | -
|
260 | 264 | echo "==================== BEGIN: ~/run-tests-$attempt.log ====================" |
261 | 265 | echo "$test_output" |
262 | 266 | echo "==================== END: ~/run-tests-$attempt.log ======================" |
263 | 267 |
|
| 268 | + if ! mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ 2>/dev/null; then |
| 269 | + echo "Failed to move log file ~/run-tests-$attempt.log to integration-test/target/cluster-logs/. Skipping..." |
| 270 | + fi |
| 271 | +
|
264 | 272 | if echo "$test_output" | grep -q "Could not transfer artifact"; then |
265 | 273 | if [ $attempt -lt $max_attempts ]; then |
266 | 274 | echo "Test failed with artifact transfer issue, attempt $attempt. Retrying in $retry_sleep seconds..." |
@@ -337,12 +345,14 @@ jobs: |
337 | 345 | -ntp >> ~/run-tests-$attempt.log && return 0 |
338 | 346 | test_output=$(cat ~/run-tests-$attempt.log) |
339 | 347 |
|
340 | | - mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ |
341 | | -
|
342 | 348 | echo "==================== BEGIN: ~/run-tests-$attempt.log ====================" |
343 | 349 | echo "$test_output" |
344 | 350 | echo "==================== END: ~/run-tests-$attempt.log ======================" |
345 | 351 |
|
| 352 | + if ! mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ 2>/dev/null; then |
| 353 | + echo "Failed to move log file ~/run-tests-$attempt.log to integration-test/target/cluster-logs/. Skipping..." |
| 354 | + fi |
| 355 | +
|
346 | 356 | if echo "$test_output" | grep -q "Could not transfer artifact"; then |
347 | 357 | if [ $attempt -lt $max_attempts ]; then |
348 | 358 | echo "Test failed with artifact transfer issue, attempt $attempt. Retrying in $retry_sleep seconds..." |
@@ -419,12 +429,14 @@ jobs: |
419 | 429 | -ntp >> ~/run-tests-$attempt.log && return 0 |
420 | 430 | test_output=$(cat ~/run-tests-$attempt.log) |
421 | 431 |
|
422 | | - mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ |
423 | | -
|
424 | 432 | echo "==================== BEGIN: ~/run-tests-$attempt.log ====================" |
425 | 433 | echo "$test_output" |
426 | 434 | echo "==================== END: ~/run-tests-$attempt.log ======================" |
427 | 435 |
|
| 436 | + if ! mv ~/run-tests-$attempt.log integration-test/target/cluster-logs/ 2>/dev/null; then |
| 437 | + echo "Failed to move log file ~/run-tests-$attempt.log to integration-test/target/cluster-logs/. Skipping..." |
| 438 | + fi |
| 439 | +
|
428 | 440 | if echo "$test_output" | grep -q "Could not transfer artifact"; then |
429 | 441 | if [ $attempt -lt $max_attempts ]; then |
430 | 442 | echo "Test failed with artifact transfer issue, attempt $attempt. Retrying in $retry_sleep seconds..." |
|
0 commit comments