Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Implementing CI/CD pipeline in bitbucket

I am trying to implement CI/CD pipeline in bitbucket for the project. Basically whenever new code will pushed to the branch 'XamDev', I want to deploy the web api on aws elastic beanstalk using bitbucket CI/CD.

Below is the bitbucket-pipelines.yml for the same where I have configured all aws settings. This file I have added in Visual studio solution.

# This is a sample build configuration for .NET Core.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: microsoft/dotnet:sdk

pipelines:
  default:
    script:
          - echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
  branches:
    XamDev:
    - step:
        caches:
          - dotnetcore
        script: # Modify the comma`nds below to build your repository.
          - pipe: atlassian/aws-elasticbeanstalk-deploy:0.5.4
            variables:
              AWS_ACCESS_KEY_ID: '<Access_Key>'
              AWS_SECRET_ACCESS_KEY: '<Secret_Key>'
              AWS_DEFAULT_REGION: 'us-east-1'
              APPLICATION_NAME: '<ApplicationName>' // elastic beanstalk application name provided 
              ENVIRONMENT_NAME: '<EnvironmentName>' // elastic beanstalk environment provided
              ZIP_FILE: 'myfile.zip'
              # S3_BUCKET: '<string>' # Optional.
              # VERSION_LABEL: '<string>' # Optional.
              # DESCRIPTION: '<string>' # Optional.
              # WAIT: '<boolean>' # Optional.
              # WAIT_INTERVAL: '<integer>' # Optional.
              # COMMAND: '<string>' # Optional.
              # DEBUG: '<boolean>' # Optional.

So, after committing the code, I am not seeing any pipeline is running from bitbucket nor the aws deployment using elastic beanstalk is started.

When I checked my bitbucket account and branch it doesn't show any pipeline is configured. I am using VS 2019 with .net core web api.

Any help on this appreciated !

1 answer

Hi @Rohit_Pundlik ,

Thank you for your feedback!

Have you enabled Bitbucket Pipelines for you repository?

Also you can follow Deploy to AWS with Elastic Beanstalk guide.

 

Cheers,
Alex

Hi @Oleksandr Kyrdan 

Yes, I have already enabled the Pipelines, that is the reason I can seen the pipeline has any errors OR not.

Also, I am already following the link which you have mentioned in the reply.

Still, I am not able to get this done.

Can you tell me exactly where I am doing wrong ?

Regards,

Rohit

@Rohit_Pundlik

looks like you missed 'step' in your default pipeline.

You can validate your pipeline file in the Validator for bitbucket-pipelines.yml.

More details you can find in the guide Configure bitbucket-pipelines.yml.

Structure should be: 

yml-structure-bitbucket-pipelines.png

Hi @Oleksandr Kyrdan 

Thanks for the answer.

Now, I have almost configuration errors , but only the thing is its not getting deployed on aws elastic beanstalk.

So I have open a new thread, can you please give some solution on this?

https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Bitbucket-CI-CD-Pipeline-with-aws-elastic-beanstalk/qaq-p/1313053#M2099

Thanks for the help !

Regards,

Rohit

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,227 views 0 3
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