-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdda21f
commit bea7257
Showing
3 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import tarfile | ||
from pathlib import Path | ||
from common import upload, OS_NAME, COMPILE_CONFIG, HOME | ||
|
||
ARCHIVE_NAME = Path(f"fail_log_{OS_NAME}_{COMPILE_CONFIG}.tar.gz") | ||
|
||
|
||
files_to_archive = [] | ||
files_to_archive += HOME.glob("BUILD_*") | ||
files_to_archive += [HOME / "SOURCE", HOME / "LOGS", HOME / "TOOLCHAINS"] | ||
|
||
with tarfile.open(ARCHIVE_NAME, "w:xz") as tar: | ||
for name in set(files_to_archive): | ||
tar.add(str(name)) | ||
|
||
upload(ARCHIVE_NAME, "[email protected]:30022", "/data/tmp/ci") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters