guardian / teamcity-s3-plugin

Teamcity plugin for uploading artifacts to S3
Apache License 2.0
36 stars 18 forks source link

convert TC input stream to a file for S3 uploads #5

Closed johnduffell closed 9 years ago

johnduffell commented 9 years ago

Uploading as an InputStream causes loads of errors because it can't reset the stream every time it needs to. Also, it can only do parallel uploads for files.

Therefore this changes it to write the TC InputStream to a temp file and then use that to upload.

I don't delete it afterwards, but it should put it in /tmp. Maybe it's something we need to think about cleaning up though?

@philwills

philwills commented 9 years ago

This is great, thanks.