"Deliver change sets" follow-up action info
If we configure a follow-up action to be executed when change sets are delivered, we can retrieve information about flow target and change-sets simply from the operation data:
DeliverOperationData data = (DeliverOperationData) operation.getOperationData();
IWorkspace stream = data.getDestWorkspace();
List<IChangeSetHandle> csHList = data.getChangeSetHandles();
If we configure a change event to be executed when change sets are delivered, we are not able to retrieve the same information from the change event:
IChangeSetHandle csH = event.getItem();
The missing information about the flow target and the change-sets seems to be available since the event description reports these:
ADMIN delivered 2 change sets to STREAM
Any advice on how to retrieve this information?
In addiction, if we deliver more than one change-set, we cannot obtain the full list of change-sets delivered, but only the first one...
Any advice on how to retrieve all change-sets?
Thanks in advance.
2 answers
Quite the same question here: https://jazz.net/forum/questions/211771/how-can-i-get-all-the-delivered-change-sets-in-event-handler
It seems you can only get one single change-set (the oldest). In the event.getDescription() you have some information more (the work-item associated, the change set comment) for all the delivered change-sets. But it is only a string so you will need to find the correct change-sets. And on the other hand you cannot do the same thing with the baseline deliver handler on which find the change-sets seems much more difficult.
It seems you can only get one single change-set (the oldest). In the event.getDescription() you have some information more (the work-item associated, the change set comment) for all the delivered change-sets. But it is only a string so you will need to find the correct change-sets. And on the other hand you cannot do the same thing with the baseline deliver handler on which find the change-sets seems much more difficult.
In the event.getDescription() you have some information more (the work-item associated, the change set comment) for all the delivered change-sets. But it is only a string so you will need to find the correct change-sets.
Yes, the event description reports this:
ADMIN delivered 2 change sets to STREAM
but a pattern matching with this message would be quite weak (e.g., it is not always in English).
Thanks Michele.