Merge pull request #16568 from jherico/ga/fix_s3

Fix GA S3 upload path
This commit is contained in:
Bradley Austin Davis 2019-12-10 12:45:31 -08:00 committed by GitHub
commit b4fc9c20ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ def main():
bucket_name = os.environ['BUCKET_NAME']
upload_prefix = os.environ['UPLOAD_PREFIX']
release_number = os.environ['RELEASE_NUMBER']
full_prefix = upload_prefix + '/' + release_number[0:-2] + '/' + release_number + '/'
full_prefix = upload_prefix + '/' + release_number[0:-2] + '/' + release_number
S3 = boto3.client('s3')
path = os.path.join(os.getcwd(), os.environ['ARTIFACT_PATTERN'])
files = glob.glob(path, recursive=False)