CodeBuild vs CodePipeline with Bitbucket Cloud Repo

0

I created a CodeBuild project for a .Net Framework repo in BitBucket cloud. The project is using OAuth to connect to BB Cloud. The build runs successfully and creates artifacts in S3.

Next, I created a CodePipeline using this CodeBuild project.

The pipeline wizard forces me to select a Bitbucket app or create a new one to connect to the BB Cloud repo. I've tried using the apps there as well as using the install new app method and have the same problem outlined below. The apps that are already installed were created with my AWS account.

Problem: I am getting a build error when trying to pull from the Bitbucket cloud repo.

The build error is:

authorization failed for primary source and source version

I have a user in my Bitbucket Cloud repo with admin privs for my AWS email...which is why my CodeBuild project works.

So I'm not sure why I am still having this problem via the Pipeline using the same codebuild.

Any thoughts?

已提問 2 年前檢視次數 800 次
2 個答案
0

You might want to try to ensure you followed the steps here to setup auth between CodePipeline and BB Cloud. (you might already done some of those)

Then, ensure you choose "Full clone" in Output artifact format, and then follow the instructions here to update the CodeBuild project service role.

Jason_S
已回答 2 年前
0

Thank you for that suggestion.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南