gonzadocarmo / teamcity-s3-plugin

Apache License 2.0
17 stars 8 forks source link

Option for target path? #5

Open cheshrkat opened 6 years ago

cheshrkat commented 6 years ago

I have a use case where we want to deploy copies of assets into subdirectories for testing:

s3bucket/foo/file.ext
s3bucket/bar/file.ext

...where foo/bar are the build number or the git branch/tag.

Usage would be to append the path to the bucket name. Equivalent with the CLI:

aws s3 sync ./source/ s3://"$S3BUCKET"/"$DEPLOY_PATH"

I don't think this is currently possible with the plugin?

JayQuerido commented 5 years ago

I also need this. Any word on this, @gonzadocarmo ?

gonzadocarmo commented 5 years ago

@JayQuerido / @cheshrkat unfortunately, I'm not actively maintaining this. You're more then free to submit a PR if still interested. If not, I think you could still accomplish this by creating as many build steps as directories (build number/DEPLOY_PATH) you want. On each build step you'd specify the different directory on the "Artifacts path" section. Does it help?

cheshrkat commented 5 years ago

Thanks for the response. I'll try the workaround you've suggested. Not sure my Java-fu is strong enough to do a PR.