Search code examples
bitbucketaws-codepipelineaws-codebuild

AWS Code PipeLine not getting all repository of BitBucket account


I am using AWS CodeBuild and CodePipeline service to implement CI/CD in my project.

AWS CodeBuild using Bitbucket I am getting all repository of my Bitbucket account.

While Creating CodePipeLine and connect with my BitBucket, I can't get all repository of my BitBucket account.

  • I have admin access to BitBucket.

  • AWS CodeStar injected successfully in Bitbucket

So is there any extra setting need in the BitBucket account for implement AWS Codepipeline?


Solution

  • CodePipeline uses a Bitbucket App installed on your Bitbucket account to access repositories. Currently Bitbucket only allows Apps to access repositories on the same account that the App was installed on.1 I’ve passed this feedback onto the CodePipeline team who is partnering with Atlassian on this integration.

    For now you can try this workaround:

    1. Select the connection
    2. Type the name of the Repo as <account>/<repository-name> in the "Repository name" field
    3. Select the branch

    CodePipeline connection should be able to retrieve the repo when you run the pipeline.

    References

    1: Bitbucket connections only provide access to repositories owned by the Bitbucket account that was used to create the connection.