Copy/Move Build Definition to folder
Bradley Mosher (1●3●3)
| asked Oct 10 '14, 10:31 a.m.
edited Oct 10 '14, 11:00 a.m. by Ralph Schoon (63.5k●3●36●46)
Hello,
I am attempting to copy a Build Definition outside of the root Build definition into a sub folder and I cannot find any hint of how to do this within the api documentation. I can successfully do anything I want to do within the root Build Definition folder. Can someone point me in the right direction as to where to find the documentation on how to do this?
|
Accepted answer
Bradley,
please cp. my forum question with answer on how to search for IBuildFolder. First, create your build definition. Then get a IBuildFolderHandle on the folder to which you want to move. Put the BuildDefinition Handle in an array: IItemHandle[] itemHandles = new IItemHandle[] {myBuildDefHandle}; ClientFactory.getTeamBuildClient(repo).moveItemsToFolder(itemHandles, folderHandle, progressMonitor); Apparently the call gets a working copy of the folder and saves it, too. If this answers your question please mark it accepted. - Arne Ralph Schoon selected this answer as the correct answer
|
3 other answers
Folders for Build definitions was released with version 5.0
https://jazz.net/downloads/rational-team-concert/releases/5.0?p=news#BuildDefFolderWebUI in eclipse, right click on builds and select New Folder |
Sorry I should have been more clear. I am attempting to do this through the api and have no idea where to go in the api documentation.
|
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.