It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo Server Repositories

John Bowker Jan 21, 2013

How does Bamboo keep track of version control changes? We recently moved a repo to a new domain and Bamboo couldn't relocate when checking for changes.

Is it a directory location on the Bamboo server or the remote agent?

1 answer

1 accepted

2 votes
Answer accepted
Marcin Gardias Atlassian Team Jan 21, 2013

If you change the location of your version control server you need to update Plan configuration in Bamboo.

John Bowker Jan 21, 2013

Thanks for the info.

Does Bamboo create a checkout on the server to keep track of changes? I changed the url to the new location and Bamboo still gave me an error.

The only way I could get it to work was to delete the repository item in the plan and create a new one.

We will be moving our repos onto a new location soon and it would be great to automate this. So if Bamboo does have checkouts on the server I can run a script to update them without having to delete and recreate all the information.

Marcin Gardias Atlassian Team Jan 21, 2013

2 questions:

1) What is your VCS system?

If you use Git or Mercurial then Bamboo maintains a clone of the repo on the server to speed up the change detection.

In case of SVN or CVS it simply 'asks' the server for the most recent version.

2) What kind of error do you get?

Here's the thing: if you change definition of repository (e.g. server url) in Bamboo, the system will consider this as 'new' repo and should automatically 'reset' the change detection on the next change detection cycle. After that happens, any new commit to the new location should be picked up by Bamboo.

In other words: all the internal stuff Bamboo maintains to keep track of changes should be cleaned automatically.

There is a limitation: Bamboo can't tell if the repository is moved or is it completely new, so it will assume the latter, just in case. Nevertheless, you shouldn't be required to take manually cleanup any Bamboo internals to get it working after VCS relocation.

Side note: it might be a good idea to take this issue to Atlassian Support.

John Bowker Jan 21, 2013

We use Subversion.

Bamboo reported the standard svn error “Repository moved permanently to <> please relocate”.

Even after changing the repo url to the new one I still saw this error, almost as if Bamboo didn't register the change.

However I did re-run the failed build instead of starting a new build, maybe thats the problem.

Marcin Gardias Atlassian Team Jan 21, 2013

>However I did re-run the failed build instead of starting a new build, maybe thats the problem.

You are right: once build is run the source revision AND repository details are fixed. Please start a new build, that should work.

John Bowker Jan 21, 2013

Thanks for the help, much appreciated.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,971 views 1 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you