Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



One answer

Permanent link

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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Aug 04 '17, 4:21 a.m.

Question was seen: 1,357 times

Last updated: Aug 04 '17, 6:54 a.m.

Confirmation Cancel Confirm