TFS Repository Update Leak

I seems when you updates you repositories to a new location, it still keep hitting on old locations. Can we have a fix for this as it keep hitting the server for many unused URL every 180 seconds.

Below is the log

2014-01-06 16:23:50,168 WARN [4-BAM::PlanExec:pool-7-thread-4] [TfsRepository] Caught an exception: TF10122: The path '$/Portfolio Implementation/Versions/${prod.version.major}/${prod.version}/Pretrade' contains a '$' at the beginning of a path component. Remove the '$' and try again.
                at com.stellarity.bamboo.repository.TfsRepository.collectChangesSinceLastBuild(
                at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(
                at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(
                at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(
                at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(
                at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildIfTriggered(
                at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.testIfBuildShouldStart(
                at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$
                at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$
                at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(
                at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(
                at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(
                at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.startConditionalBuild(
                at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(
                at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(
                at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$
                at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$
                at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
                at Source)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$ Source)
                at Source)
Caused by: TF10122: The path '$/Portfolio Implementation/Versions/${prod.version.major}/${prod.version}/Pretrade' contains a '$' at the beginning of a path component. Remove the '$' and try again.
                at ms.tfs.versioncontrol.clientservices._03._RepositorySoap12Service.queryHistory(
                ... 25 more

5 answers

Hi Gaurav,

Are you sure you have updated all repos? Could you recheck it.

Here is how you can reproduce the issue :

1.) Set up a plan with TFS repository URL say URL1 (could be junk/temporary/typo) polling every 180 seconds

2.) Edit your plan and modify the repo URL to say URL2

Check the TFS Repository Log it will still be polling URL1.

Gaurav, I cannot reproduce the issue using these steps. Could you change the addon log level to ALL and see which plan uses the wrong path (on the admin page select system->log settings->com.stellarity.bamboo.repository.TfsRepository->ALL->save)? And then take a look at the plan's repo (and update its settings).

Yeah I understand what you are talking. There is no such URL in any current plans.

It was there before. Something went wrong and it did not replace the URL but appended it.

On a side note : Is global variable getting populated ?

No. In TFS a branch name is a part of the source path. And currently there is no automatic branch detection in TFS Repository so this variable is not set. Are you interested in this feature?

We would like to have that feature. The simpler our configuration become the better it is.

We adopted to code promotion branching strategy and have bamboo projects for Development, Integration and Production, each having more than dozens of plans.

When we build we want to know which branch code is checked out ( out of dev, int, prod ) to add in artifact name or manifest. Right now we are achiving this by passing a Sytem variable to gradle build for each plans. But then it is lot of copy paste.

In TFS, we have something similar 

I see. I'll implement setting ${} variable in the next release (will be ready on the next week).

Implemented in version 1.1.2 and 1.0.11. Please, try it.

Sure. Will let you know.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,821 views 0 6
Read article

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