Troubleshooting duplicate builds triggered upon every commit/push

When you have duplicate builds triggering on every commit or push this usually indicates that there's a problem with the webhook in GitHub.

Typically this means there are multiple webhooks added to the repository/project in GitHub for CircleCI.

Solution 1

We would recommend having an admin of the Github Organization follow these steps in order: 

1. In GitHub, navigate to the impacted repository settings.


2. Select Webhooks



3. If there are multiple webhooks present here, remove all of the duplicate webhooks for CircleCI. 


Solution 2

If this does not resolve the duplicate triggered builds issue, then your Organization Admin can entirely remove all webhooks for the repository, stop building, and then add the project back on CircleCI.

  1. Navigate to the repository settings/Webhooks as described above.
  2. Remove all of the webhooks for CircleCI.
  3. In CircleCI, stop building the project through "Project settings".
  4. Then, reconnect the project back on CircleCI.

Once this has been done you should only see one build being triggered with each push/commit.

A full walkthrough for removing a project/repository from CircleCI can be found here, including screenshots.

Was this article helpful?
1 out of 10 found this helpful



Article is closed for comments.