History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1840
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Steve Luo
Reporter: Jaroslav Gorjatsev
Votes: 6
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

TFS gives "is already mapped in workspace" error if "Server Url" option or "Working Folders" mapping is changed

Created: 13/Nov/13 09:37 AM   Updated: 31/Jan/20 10:38 AM
Component/s: None
Affects Version/s: 5.0.39
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
TFS gives "is already mapped in workspace" error if "Server Url" option or "Working Folders" mapping is changed.

We use following workaround for now:

Code for "Pre-execute action" of TFS checkout step:
groovy:
logger.info("Unmapping...")
// folders listed in the "Working Folders" mapping option
def inDir = new File(configuration.workspaceDir, "lcl/in")
def outDir = new File(configuration.workspaceDir, "lcl/out")
// create them as workspace might be cleaned up before
inDir.mkdirs()
outDir.mkdirs()

//execute unmap command
logger.info("In dir: " + inDir)
util.execute("tf workfold /unmap .", inDir)
util.execute("tf workfold /unmap .", outDir)


Please add unmapping option before checkout is made for TFS Repositories.
Though that might produce large number of detached mappings, so any other solution that removes workspace before checkout will suffice.

 All   Comments   Work Log   Change History      Sort Order:
No work has yet been logged on this issue.