Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to trigger build: Couldn't read commit

I work with cloud build and connect with bitbucket. The trigger have been work with a few build. But suddenly, I got the error like in the screenshot. I don't have any idea. What is it mean?enter image description here

like image 510
Uysim Ty Avatar asked Mar 08 '26 06:03

Uysim Ty


1 Answers

I also got the same error:

Failed to trigger build: Couldn't read commit

I had placed a different project ID in the trigger template of when I created the trigger config .yaml file. If someone stumbles on this issue, make sure that the project ID that you have placed is the same as the project ID of the repository. See the following:

triggerTemplate:
  branchName: ^BRANCH_NAME$
  projectId: PROJECT_ID_OF_THE_SOURCE_REPO_BRANCH
  repoName: SOURCE_REPO_NAME

See documentation here:

  • Creating a trigger via gcloud (beta)
  • Build trigger JSON representation
like image 98
rcanu Avatar answered Mar 09 '26 21:03

rcanu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!