'Google Cloud Build doesn't trigger on Github push, builds old commit when triggered manually
I have defined a simple configuration in Google Cloud Build that mirrors a github repository and triggers when I push to master. However, for some time, the build is not triggered anymore when I push. And when I trigger the build manually, an old commit is built.
Deleting and recreating the trigger didn't help.
How can I fix this?
Solution 1:[1]
As far as I can tell, this is a bug on Google's side but here's a workaround how I was able to fix it.
First, delete your Cloud Build trigger.
Then, navigate to Google Cloud Source Repositories. You should be able to find the repo that is mirrored from Github. Click on the settings icon next to repo and then click on "Disconnect this repository".
Now, recreate the trigger from scratch.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kirill Rakhman |
