19 lines
507 B
Python
Executable File
19 lines
507 B
Python
Executable File
#!/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, "ci@tmp.kiwix.org:30022", "/data/tmp/ci")
|