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 ??
One answer
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.