Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Build trigger creation failed.

Hi Google Cloud Team,
I'm trying to deploy my repository from github to google run using cloud build.
Somehow, it throws error "Cloud Build trigger creation failed. Continuous Deployment pipeline is not set up. Error while setting necessary roles for Cloud Build Service Account. Required roles: roles/run.admin, roles/iam.serviceAccountUser."

I have setup Cloud Build Service Account to have the required roles as it suggest, still not working and throws the same error

Permlap_0-1710393830965.png

here is Cloud Build Service Agent

Permlap_1-1710393930490.png


Permlap_2-1710394019620.png

FYI, I accidently delete Compute Engine default service account for over 30 days.
This also might be the case as well.
I'm trying to recover my  Compute Engine default service account by trying this  https://stackoverflow.com/a/57360924 turn out it still not working because I deleted it for over 30 days

I also try to disable and re-enable Google Compute Engine API in my project still Compute Engine default service account not showing up

 

Solved Solved
2 19 2,422
1 ACCEPTED SOLUTION

Hi guys,

Just want to response to my own question. None of these solutions works for me. So I decided to create new project to have all setting as a default and it works.

It's not a way to fix the issues, but it is the way to moving forward hahaha

View solution in original post

19 REPLIES 19