Google cloud container builder not always triggering from bitbucket

106 views
Skip to first unread message

an...@ellissoft.com

unread,
May 29, 2018, 6:32:05 AM5/29/18
to Kubernetes user discussion and Q&A
I have build triggers set up in the Google Cloud Container Builder that are set to trigger on specific branches and use the cloudbuild.yml config in the repo. For about the first day that I pushed commits to any of these branches, it triggered a container build and completed successfully. Since then, the triggers have only worked intermittently. Sometimes Google Cloud Container Builder doesn't detect the commit at all (I have checked the commit is in bitbucket and the commit is on the right branch). At that point, I've tried manually triggering a build through the google console, but it uses the older commit that it last built on, not the latest commit. So then I will try to push small changes from the repo or do an empty commit. Sometimes that triggers the build, sometimes not. The interesting thing is that when the build finally triggers on a branch after a while, it will trigger builds on the other branches if they have a recent commit that hasn't been built.

I have no idea how to resolve this. Has anyone experienced a similar problem?

ja...@sonofatailor.com

unread,
Jun 5, 2018, 6:02:25 AM6/5/18
to Kubernetes user discussion and Q&A
On Tuesday, May 29, 2018 at 12:32:05 PM UTC+2, an...@ellissoft.com wrote:
> I have build triggers set up in the Google Cloud Container Builder that are set to trigger on specific branches and use the cloudbuild.yml config in the repo. For about the first day that I pushed commits to any of these branches, it triggered a container build and completed successfully. Since then, the triggers have only worked intermittently. Sometimes Google Cloud Container Builder doesn't detect the commit at all (I have checked the commit is in bitbucket and the commit is on the right branch). At that point, I've tried manually triggering a build through the google console, but it uses the older commit that it last built on, not the latest commit. So then I will try to push small changes from the repo or do an empty commit. Sometimes that triggers the build, sometimes not. The interesting thing is that when the build finally triggers on a branch after a while, it will trigger builds on the other branches if they have a recent commit that hasn't been built.
>
> I have no idea how to resolve this. Has anyone experienced a similar problem?

I have the exact same problem. Triggering manually doesn't work either and it will just pull the old branch

Angie Ellis

unread,
Jun 5, 2018, 7:38:20 PM6/5/18
to kubernet...@googlegroups.com
I believe I solved the problem. I originally added each bitbucket repository to the Source Repositories in Google Cloud. After that, I added a build trigger for each of those repos in the Container Registry. When adding the trigger, I had to go through the same process of connecting to the repositories in Bitbucket as I was taken through with the source repositories. I later realized that it had created a separate connection in the Source Repositories section for each of these repos automatically. So I had two connections to each repo in bitbucket listed in the Source Repositories. Once I deleted the duplicates, the triggers started working consistently.


--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/RFr09z2WYEo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Jakob Holmelund

unread,
Jun 8, 2018, 6:14:15 AM6/8/18
to kubernet...@googlegroups.com
Just did this 2 days ago and haven't had troubles since ! thank you for the tip. I'll report back if i run into further problems

To unsubscribe from this group and all its topics, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-users/RFr09z2WYEo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
--
Jakob Holmelund

Head of Engineering
SON OF A TAILOR

Nørregade 33
1165 Copenhagen
Denmark

Phone: +45 22169768
Reply all
Reply to author
Forward
0 new messages