How to get/set the workspace in Build Definition via SDK API
Hi,
Is there any one know how to get/set the workspace if I get the builddefiniton. Thanks! ITeamBuildClient buildClient = (ITeamBuildClient) repo.getClientLibrary(ITeamBuildClient.class); This is the code to rename a definition id, how to reset a workspace? Thanks! |
Accepted answer
Assuming the build definition was created with the Jazz SCM pre-build option, you can set the workspace property using: com.ibm.team.build.common.model.IBuildDefinition.setProperty(String, String) giving: com.ibm.team.build.internal.common.builddefinition.IJazzScmConfigurationElement.PROPERTY_WORKSPACE_UUID as the property name, and the workspace item id as the value: aWorkpace.getItemId().getUuidValue() Jia Jia Li selected this answer as the correct answer
|
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.