ContinueUpload V2

continue_upload_v2(file_path, is_multipart_upload, parts)

Description

High level wrapper function to upload artifact by presigned urls. It checks to upload file in chunks or not based on the size.

Arguments

  • file_path: Local path of the artifact to be uploaded.
  • is_multipart_upload: flag returned by post_artifacts_presigned_startupload.
  • parts: presigned urls returned by post_artifacts_presigned_startupload.

Returns

  • parts: parts with ETag updated for multipart upload.

Usages

file_path = "C:\\Temp\\test.apk"
file_size = get_file_size(file_path)
file_name = get_filename(file_path)
start_upload_response = start_upload_v2(public_api_client, file_name, file_size, artifact_type)
parts = continue_upload_v2(file_path, start_upload_response.is_multipart_upload, start_upload_response.parts)