Commit 9c7710e
Save artifacts only once
Since commit [1] the `Server:save_artifacts()` function was called more
than once. Due to this fact we could overwrite already saved artifacts.
Added a flag that will ensure that the saving will be executed only
once.
There was also a problem when copying artifacts was not performed but
the path to the artifacts was formed as a directory with artifacts:
artifacts:
server -> /tmp/t/artifacts/server-XXX
And if we tried to look at these artifacts, we could see this:
$ ls -la /tmp/t/artifacts/server-XXX
ls: cannot access '/tmp/t/artifacts/server-XXX': No such file or
directory
To show explicitly that the saving failed with an error, the following
string will now be written to the artifacts:
artifacts:
server -> Failed to copy artifacts for server (alias: server-XXX
workdir: /tmp/t/artifacts/server-XXX)
[1] 251b35f
Part of #3041 parent 18859f6 commit 9c7710e
2 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
341 | 346 | | |
342 | 347 | | |
343 | 348 | | |
| |||
458 | 463 | | |
459 | 464 | | |
460 | 465 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
376 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
377 | 382 | | |
378 | 383 | | |
379 | | - | |
380 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
381 | 387 | | |
| 388 | + | |
382 | 389 | | |
383 | 390 | | |
384 | 391 | | |
| |||
0 commit comments