EndUpload V2

end_upload_v2(public_api_client, uuid, upload_id, etag_updated_parts)

Description

To finish artifacts upload.

Arguments

  • public_api_client: QDC api client object.
  • uuid: uuid of the initiated start upload request.
  • upload_id: id of pregisned url upload, returned by start_upload_v2.
  • etag_updated_parts: parts that eTags updated for multipart upload.

Returns

  • true: If the upload is finished.
  • false: If failed to finish the 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)
end_upload_response = end_upload_v2(public_api_client, start_upload_response.uuid, start_upload_response.upload_id, parts)