You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi, folks!
I'm trying to do a very simple deploy process with Pipelines and CodeDeploy. However, after I create the zip file and I try to upload it to S3, the pipeline fails saying the file is not present.
To be sure the file was present, I added a find command right before the upload command. The find command does result in a hit, but the deploy still fails saying it could not find it. I'm guessing the file is lost because it is not present on the same Docker. Do I have to do everything on the same script and use the Python integration script?
I have attached screenshots to illustrate this situation and my bitbucket-pipeline.yml.
Thank you in advance!
===================
Pipeline Configuration:
script: # Modify the commands below to build your repository.
- apt-get update && apt-get install zip
[...]
- cat build/include.txt | zip build.zip -@
- find . -name build.zip
- step:
#name: Deploy
name: Upload
deployment: Production - Labs Dynaton
script:
- pipe: atlassian/aws-code-deploy:0.5.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION # Optional if already defined in the context.
APPLICATION_NAME: $APPLICATION_NAME
COMMAND: $COMMAND
S3_BUCKET: $S3_BUCKET
ZIP_FILE: 'build.zip' # Trying to pass it hardcoded
(pasting here unformatted the YML. Pretend everything is well formatted)
Screenshots:
Solved using Artifacts.
https://confluence.atlassian.com/bitbucket/using-artifacts-in-steps-935389074.html
I found a little confusing and misleading the documentation - it did not look like I would need to create an artifact. Nonetheless, it is solved.
Cheers!
I agree, the docs are not very clear and there is no comprehensive latest and up to date reference available. I had to piece everything together from various places.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.