Upload artifacts from Artifactory to S3 will follow the steps:
- Uploading the file to a tmp dir in the S3 bucket like <bucket_path>/filestore/_p and file will name as _pre_<filename>
- After the file is successfully uploaded to the S3 bucket _p tmp directory, the file will copy to the specified bucket directory.
- The specified bucket directory is named as the first two digits of the sha1 value of the file. If the specified bucket directory exists, it will copy the file directly to the specified bucket directory. If the specified bucket directory does not exist, the specified bucket directory needs to be created, and then the file is copied to the specified bucket directory.
- The file will be deleted from the _p directory in the bucket regardless of whether the file is copied successfully