Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Upload Only #2

Open
eugenestarchenko opened this issue Jul 14, 2016 · 4 comments
Open

S3 Upload Only #2

eugenestarchenko opened this issue Jul 14, 2016 · 4 comments

Comments

@eugenestarchenko
Copy link

eugenestarchenko commented Jul 14, 2016

Is there a way to upload only needed files to S3 (specific bucket) without using appspec.yml & aws code deploy application with this plugin ? I can see this feature in build step (Upload only) but it doesnt work like that.

@vbedrosova
Copy link
Contributor

Hi, Eugene, sorry for the delayed reply.
Yes, if you choose "Upload" option from the list and specify a path to a ready archive (zip, tar or tar.gz) it will be uploaded to the S3 bucket you specify.

@acds
Copy link

acds commented May 7, 2019

@eugenestarchenko did you get this to work, I get an the following error:

Failed to package application revision /opt/buildagent/temp/buildTmp/<folder>/<myzip>.zip
[19:58:52]	[Step 9/9] Failed to package application revision /opt/buildagent/temp/buildTmp//<folder>/<myzip>.zip
[19:59:26]	[Step 9/9] Step Upload Configuration Files (AWS CodeDeploy) failed with unexpected error

Given the very ambiguous error I've no idea what I'm doing wrong ?

@vbedrosova - any ideas ?

@formigarafa
Copy link

@vbedrosova , that's actually not working.
I was taking a look at the commit where this is supposed to be enabled (2aede87)

And I think they missed test to ensure this would actually work.

Looking around the code I noticed the condition used checks if upload is one of the many steps of the deploy selected.


Not the only step selected.

And finally, here, https://github.com/JetBrains/teamcity-aws-codedeploy-plugin/blob/master/aws-codedeploy-agent/src/main/java/jetbrains/buildServer/runner/codedeploy/CodeDeployRunner.java#L88
isDeployStepEnabled is passed as mustContainAppSpecYml param to ApplicationRevision constructor, that is exactly the opposite of what we thought this is supposed to do.

@hatton
Copy link

hatton commented Aug 21, 2019

Yes, if you choose "Upload" option from the list and specify a path to a ready archive (zip, tar or tar.gz) it will be uploaded to the S3 bucket you specify.

I found that this is literally true; it will put that build.zip file in the bucket. Not useful.

What we need is way to unpack the archive to replace the files in the bucket. Is that possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants