ci: stop print presigned url, since the credential is masked

This commit is contained in:
Fu Hanxi 2024-10-18 10:51:07 +02:00
parent 8576f40ced
commit dcb4bf4600
No known key found for this signature in database
GPG Key ID: 19399699CF3C4B16

View File

@ -152,11 +152,8 @@ def _upload_files(
try:
if has_file:
obj_name = f'{pipeline_id}/{artifact_type.value}/{sanitize_job_name(job_name)}/{job_id}.zip'
print(f'Created archive file: {job_id}.zip, uploading as {obj_name}')
client.fput_object(getenv('IDF_S3_BUCKET'), obj_name, f'{job_id}.zip')
url = client.get_presigned_url('GET', getenv('IDF_S3_BUCKET'), obj_name)
print(f'Please download the archive file which includes {artifact_type.value} from {url}')
print(f'Created archive file: {job_id}.zip, uploaded as {obj_name}')
finally:
os.remove(f'{job_id}.zip')