TeamCity 'Edit VCS Root' 'Test connection' button fails with java.io.IOException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr4j |
New
|
Undecided
|
Unassigned |
Bug Description
1) Create a local bzr repo, i.e. file:///bzr/app
2) Attempt to set it as a vcs root in Teamcity "Administration > Edit Build Configuration > Edit VCS Root" and hit the "Test connection" button at the bottom.
3) A java.io.IOException occurs (see snippet below):
[2010-04-02 19:52:39,860] WARN [ion=addVcsRoot ] - jetbrains.
jetbrains.
at jetbrains.
at jetbrains.
...
ROOT cause - the spawned process attempts to change to the default vcs root bzr_-5093388796
Proposed fix - see http://
Basically it references a (new) list of bzr commands that require the working dir to be the parent of the BazaarRoot. Though commands such as "info" and "check" could be ROOTLESS, the repo url is still required it was simpler to just let the process attempt to run from the parent directory as "clone" and "branch" must.
Rather than create a seperate bug, this error also occurs when trying to "Run" any build agent using a bzr VCS root.
Pretty much same root cause, io exception when trying to run "clone" from the BazaarRoot that hasn't been created yet (only the parent was created). Again see for possible fix: http:// bazaar. launchpad. net/~bhournbuck le/bzr4j/ tc-fixclone- trunk/revision/ 27/modules/ core/src/ main/java/ org/emergent/ bzr4j/core/ cli/BzrAbstract Exec.java
Note, other commands may need similar treatment, such as "export".