I have a build plan that's running fine for our "default" branch but never detects new branches even though I have selected "Create plan branches for all new branches" under "Automatic branch management".
The error log shows an error like this, hundreds of times:
Repository error while detecting branches for plan MYPLAN. com.atlassian.bamboo.plugins.hg.HgCommandException: command /usr/bin/hg pull --config 'ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes' https://MY-USER:********@MY_REPO failed. Working directory was `/data/jirastudio/bamboo/home/xml-data/build-dir/_hg-repositories-cache/c66398d56b8a4bc204aa182e9c43e6201243afc6'. stderr: abort: HTTP Error 400: Bad request
stdout: pulling from https://MY_USER:***@MY_REPO
searching for changes
If I run the exact hg command from my machine, it successfully pulls the repository from our remote provider.
Any suggestions on getting this to work? Automatic plan branches are literally one of the key reasons we're even looking at Bamboo.