Deliver specific changesets to different streams
VK L (817●7●157●159)
| asked Jun 08 '15, 3:42 p.m.
edited Jun 09 '15, 3:35 a.m. by Ralph Schoon (63.5k●3●36●46)
Hi,
I have the changeset reference and need to deliver selectively to specific streams - as all changesets are not applicable to be delivered. There wont be any conflicts as its in the required order. Is it possible to deliver the selected changesets to streams without getting a total out-of-sync report? Please advise.Thanks. |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 09 '15, 2:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am unsure if I understand the question, especially as it was tagged with extending, which means API work.
There are several ways how to do this. One would be to create a repository workspace from the stream you want to deliver to. Then you accept the changes you want into that repository workspace. Then you deliver the outgoing changes. If you have gaps, you would have to use the gap handling to get the change sets too. You can accept change sets from work items, r you can search for them in different ways. An out of sync typically only occurs, if one has the same repository workspace loaded and changed from different places. So it does not really play a role in this scenario at all. Comments
VK L
commented Jun 09 '15, 3:19 a.m.
Hi Ralph,
All I can provide is https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/
Note, please try to put a little bit more effort into your questions and describe what you want to do and why.
VK L
commented Jun 09 '15, 3:37 a.m.
I am looking for an API equivalent to CLI:"scm deliver -c"
This is the API I am aware of, from my blog post. Maybe start there?
System.out.println("Comparing Change Sets..."); IChangeHistorySyncReport changeSetSync = repoWorkspace.compareTo( targetStream, WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY, Collections.EMPTY_LIST, monitor); System.out.println("Deliver Change Sets..."); repoWorkspace.deliver(targetStream, changeSetSync, Collections.EMPTY_LIST, changeSetSync.outgoingChangeSets(component), monitor);
showing 5 of 6
show 1 more comments
|
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.