It's all about the answers!

Ask a question

How to deliver the Set of changesets using plain client library ?


vinitha dsouza (14719122) | asked Aug 04 '17, 4:21 a.m.
edited Aug 04 '17, 4:24 a.m.

Hello team

I am currently checking in my change set using below code :

 fRepoWsConn.commit(fChangeSet, Collections
                         .singletonList(fRepoWsConn.configurationOpFactory()
                                 .save(fileWorkingCopy)), fMonitor);
          
But when i try to deliver the a list of change sets using below code i get the following error:
Exception in deliverChangesets()...details :com.ibm.team.process.common.advice.TeamOperationCanceledException: 'Deliver' failed. Preconditions have not been met: A work item or change request must be associated with the change set and a comment must be set.

 for(IChangeSetHandle fChangeSet:changesetList){
          
              List<ILink> links = fileSystemWorkItemManager.createLink(
 streamHandle, changeSet,
     new IWorkItemHandle[] { (IWorkItemHandle) workitem
             .getItemHandle() }, null);

IChangeHistorySyncReport sync = fWorkspace.compareTo(streamWsConn,
     WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY,
     Collections.EMPTY_LIST, fMonitor);

fWorkspace.deliver(streamWsConn, sync, Collections.EMPTY_LIST,
     sync.outgoingChangeSets(compHandle), fMonitor);


I am able to deliver one change set and deliver the same in one shot ,But unable to deliver the set of Chnagesets?

Any idea on this ??

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Aug 04 '17, 6:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

See the answer at the duplicate question: https://jazz.net/forum/questions/242720/teamoperationcanceledexception-when-trying-to-deliver-multiple-changesets-at-the-same-time

Note, if you work on stuff with several people, coordinate who asks a question.

Your answer


Register or to post 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.