Do not upload failed site to the S3

This commit is contained in:
Mikhail f. Shiryaev 2023-05-10 20:14:30 +02:00
parent 65d1ae77ee
commit 0f70ad56a9
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -87,9 +87,10 @@ def main():
report_path = result_path / "html_report"
logging.info("Report path %s", report_path)
s3_path_prefix = "codebrowser"
_ = s3_helper.fast_parallel_upload_dir(
report_path, s3_path_prefix, S3_TEST_REPORTS_BUCKET
)
if state == "success":
_ = s3_helper.fast_parallel_upload_dir(
report_path, s3_path_prefix, S3_TEST_REPORTS_BUCKET
)
index_html = (
f'<a href="{S3_DOWNLOAD}/{S3_TEST_REPORTS_BUCKET}/codebrowser/index.html">'