I was trying to add another project to be build in CircleCi today, but whenever I push to a branch in bitbucket the build is not started it CircleCi
I can trigger the build manually by calling the api curl -X POST -H "Content-Type: application/json" https://circleci.com/api/v1.1/project/bitbucket/<org>/<project>/tree/<branch>?circle-token=<my_token> and the build goes through ok, so my .circleci/config.yml is correct.
I tried using āStop buildingā a few times and confirmed it removes the webhooks in bitbucket. When I configured the project again in CircleCi the webhooks were added back and look ok. When I make a push to the branch, bitbucket records it made the webhook request and received HTTP 200 OK response with Event repo:push successfully submitted message, but builds are not triggered
Anything I missed or can try to get the builds to trigger when a push is made?
Either you have a YAML syntax error in your config, or your workflow config is set to scheduled builds only. Can we see your config, in a Markdown formatted block?
Aha, you hit a bug thatās been mentioned a few times recently. I believe there is a problem with branch filtering on jobs presently. Create yourself a little workflow, and move the branch filter to the workflow:
and the build was triggered on push to the branch! This is quite annoying, because I think it works ok with the branch filtering without the workflow for our other projects!
Thanks a lot for pointing me in the right direction, hopefully Iāll get fixed soon
Most folks encountering this bug are sticking with the workflow filter, as most non-trivial CI strategies will need workflows at some point anyway. But yes, the CircleCI peeps know about itā¦