Bamboo hg error pulling bitbucket subrepository

We have bitbucket hosted repositories with several subrepositories, when I try to pull a repository with a subrepository it fails with this message: stderr: abort: repository <sub repository name> not found! This of course fails the build since it couldn't pull the source.

The Repository structure looks sort of like this:

dev_all_main_repository = bitbucket.org/companyname/dev_all

- subrepository1 = bitbucket.org/companyname/subrepo1

- subrepository2 = bitbucket.org/companyname/subrepo2

- subrepository2_subrepository1 = bitbucket.org/companyname/subrepo2_subrepo1

2 answers

This widget could not be displayed.

Hm... Have you tried to disable "repository caching" in the plan's repository advanced configuration? There should be a checkbox "Disable repository caching" there, which is supposed to enable subrepositories support.

This widget could not be displayed.

(buildlog.txt)

Problem is still happening with "Disable repository caching" checked. Have tried many different configurations and this error still occurs with the subrepo.

Attached is the failed build log from a test repo that is very simple:

main \ a.txt

\.hgsub

\component \ b.txt

where .hgsub is component = component

The repo and subcomponent clone fine from the command line. Not sure why this is failing in Bamboo.

One thing that seemed curious in the log is "Removing '/var/bamboo-home/xml-data/build-dir/RT-TEST-JOB1' as it does not contain a valid hg repository ".

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

173 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you