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.
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.