It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,584 views 0 6
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