Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,246
Community Members
 
Community Events
165
Community Groups

Bitbucket pipeline Deployment failed

Hi Team,

This is  venkat, I am using bitbucket pipeline for CI/CD after I ran the following "bitbucket-pipeline.yml" configuration file. my code is upload to s3 bucket but. from s3 bucket code using  AWS deploy agent it is not deploying into EC2.

it's failing because the appspec.yml file is not in s3 bucket.

I have attached the build link please check it. I have to zip it total repository can you plz make change and reply.

 

https://bitbucket.org/rao999/ocs_admin.g/addon/pipelines/home#!/results/22

 

And I have attached the screenshot of my bit bucket repository structure here i want to  

 

---
image: node:10.15.0
pipelines:
branches:
master:
- step:
name: "Build"
script:
- "apt-get update -y"
- "cd admin/front-end/"
- "npm install"
- CI=false
- "npm run build"
- cd ..
- apt-get install -y zip
- "zip -r myapp.zip *"
artifacts:
- admin/myapp.zip
- step:
name: Upload to S3
script:
- pipe: atlassian/aws-code-deploy:0.2.3
variables:
AWS_DEFAULT_REGION: 'ap-southeast-2'
AWS_ACCESS_KEY_ID: 'AKIA5Q2RJR2HWL2BGQMZ'
AWS_SECRET_ACCESS_KEY: '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'
COMMAND: 'upload'
APPLICATION_NAME: 'variable-test-application'
ZIP_FILE: 'admin/myapp.zip'
S3_BUCKET: 'testcodedeploybucket1'
VERSION_LABEL: 'my-app-1.0.0'
- step:
name: Deploy with CodeDeploy
script:
- pipe: atlassian/aws-code-deploy:0.2.3
variables:
AWS_DEFAULT_REGION: 'ap-southeast-2'
AWS_ACCESS_KEY_ID: 'AKIA5Q2RJR2HWL2BGQMZ'
AWS_SECRET_ACCESS_KEY: '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'
COMMAND: 'deploy'
APPLICATION_NAME: 'variable-test-application'
DEPLOYMENT_GROUP: 'DG77'
S3_BUCKET: 'testcodedeploybucket1'
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
WAIT: 'true'
VERSION_LABEL: 'my-app-1.0.0'

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,084 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you