How do I get the build work space
Using SDK, I am trying to read the build work space corresponding to a build definition.
From Build definition using the property "team.scm.workspaceUUID" I am able to get the work space UUID using the following code ITeamBuildClient buildClient = (ITeamBuildClient) this.teamRepository.getClientLibrary( ITeamBuildClient.class ); IBuildDefinition buildDef = buildClient.getBuildDefinition( "ADM Metrics Build", this.progressMonitor ); String workSpaceUUID = buildDef.getProperty( "team.scm.workspaceUUID" ).getValue(); Now I need to find the workspace object (IWorkspaceHandle). Any idea how do I get the workspace handle from work space UUID. |
One answer
Handles can be created by calling the ITEM_TYPE on the type.
For IWorkspaceHandle, you call the IWorkspace.ITEM_TYPE to create the item handle: IWorkspace.ITEM_TYPE.createItemHandle(itemId, optionalStateId)Fill in the workspace UUID for the item ID and you can use null for the state ID. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.