Skip to content

Commit 238f921

Browse files
author
Michael Gummelt
committed
fix test script
1 parent ff5dbd5 commit 238f921

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
def upload_jar(jar):
1616
conn = S3Connection(os.environ['AWS_ACCESS_KEY_ID'], os.environ['AWS_SECRET_ACCESS_KEY'])
1717
bucket = conn.get_bucket(os.environ['S3_BUCKET'])
18+
basename = os.path.basename(jar)
1819

19-
key = Key(bucket, 'S3_PREFIX')
20+
key = Key(bucket, '{}/{}'.format(os.environ['S3_PREFIX'], basename))
2021
key.metadata = {'Content-Type': 'application/java-archive'}
2122
key.set_contents_from_filename(jar)
2223
key.make_public()
2324

24-
basename = os.path.basename(jar)
25-
2625
jar_url = "http://{0}.s3.amazonaws.com/{1}/{2}".format(
2726
os.environ['S3_BUCKET'],
2827
os.environ['S3_PREFIX'],

0 commit comments

Comments
 (0)