Auto creation of a snapshot after every Deliver gives Error: Stale data
Hello All,
I am writing server side extension using operation(com.ibm.team.scm.server.deliver). Auto creation of snapshot for every delivery operation on stream.
Code running without any error in my operation participant but an error occurs in Eclipse side :stale data ,mention in image
my code:
IScmService service = getService(IScmService.class);
Date date = new Date(System.currentTimeMillis());
WorkspaceItemListResult createBaselineSet2 = service.createBaselineSet2(destWorkspace, new IComponentHandle[0],
date.toString() + "Snapshot", date.toString(), BaselineSetFlags.CREATE_NEW_BASELINES, null, null, null);
if (!createBaselineSet2.getItems().isEmpty()) {
IBaselineSet baselineSet = (IBaselineSet) createBaselineSet2.getItems().get(0);
System.out.println("BaselineSet: " + baselineSet);
}
Need some simple piece of code how to fix above problem.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 20 '18, 4:21 p.m.Just as a reminder, I strongly recommend not implementing this kind of post-condition, because it will flood the system with baselines. Although baselines are relatively inexpensive, they are not free, and one can in current releases of RTC easily obtain any historical configuration of a workspace or stream, without requiring a baseline/snapshot having been created.
1 vote