'Deliver' failed. Preconditions have not been met: A work item must be associated with the change set.
Based on the question summary, you might think that, a work item was not associated with it. But thats not true, a work item was already associated with the change set. The really strange part is, all the pre-condition behaviour with respect to the "Deliver (Client) and (server)" are all removed, so that it does not claim to request for a work item to be attached with the delivery. Also, we tried in restarting the server though, but still the same issue persists. Would appreciate any help in fixing this strange issue.
Below is the snippet of the log from the build which it is actually failing with.
scm --non-interactive status -d /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] Workspace: (8943) "buildSharedLibrariesWorkspace" <-> (8944) "SharedLibrariesSt>
[exec] Component: (8945) "Published"
[exec] Baseline: (9330) 139 "Publish Shared Libraries to AIX_publish-sharedlib-201>
[exec] Outgoing:
[exec] Change sets:
[exec] (9562) *--@ ""Publish request publish-20161012-1230 for CaseManagement>
[exec] (9563) ---@ ""Publish request publish-20161012-1224 for CaseManagement>
[exec] (9564) ---@ ""Publish request publish-20161012-1123 for CaseManagement>
[exec] (9565) ---@ ""Publish request publish-20161012-1115 for ProviderStream>
[exec] (9566) ---@ ""Publish request publish-20161012-0909 for ProviderStream>
[exec] (9567) ---@ ""Publish request publish-20161012-0716 for BSLFrameworkSt>
[exec] (9568) ---@ ""Publish request publish-20161011-2001 for ProviderStream>
[exec] (9569) ---@ ""Publish request publish-20161011-1305 for CaseManagement>
[exec] (9570) ---@ ""Publish request publish-20161011-1056 for CaseManagement>
[exec] (9571) ---@ ""Publish request publish-20161011-0648 for CaseManagement>
[exec] (9572) ---@ ""Publish request publish-20161011-0642 for CaseManagement>
[exec] (9573) ---@ ""Publish request publish-20161011-0637 for CaseManagement>
[exec] (9574) ---@ ""Publish request publish-20161011-0613 for CaseManagement>
[exec] (9575) ---@ ""Publish request publish-20161007-1254 for BSLFrameworkSt>
[exec] (9542) ---@ ""Publish request publish-20161007-1137 for BSLFrameworkSt>
[exec] Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.ibm.team.filesystem.client.internal.http.HttpConnection$1
[echo] Result: 0 - Command completed successfully
[echo] Checking in files at /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] scm --non-interactive checkin -d /builds/jbe11/ml/publish-20161012-1230/workspace .
[exec] Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.ibm.team.filesystem.client.internal.http.HttpConnection$1
[echo] Result: 0 - Command completed successfully
[echo] Delivering ChangeSet from /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] scm --non-interactive deliver -d /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] Process Reports:
[exec] Name: Deliver
[exec] Participant Reports:
[exec] Name: Require Work Items and Comments
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] Problem running 'deliver':
[exec] 'Deliver' failed. Preconditions have not been met: A work item must be associated with the change set.
[exec] Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.ibm.team.filesystem.client.internal.http.HttpConnection$1
[exec] Result: 17
[echo] Result: 17 - The requested operation was blocked by Team Process.
Below is the snippet of the log from the build which it is actually failing with.
scm --non-interactive status -d /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] Workspace: (8943) "buildSharedLibrariesWorkspace" <-> (8944) "SharedLibrariesSt>
[exec] Component: (8945) "Published"
[exec] Baseline: (9330) 139 "Publish Shared Libraries to AIX_publish-sharedlib-201>
[exec] Outgoing:
[exec] Change sets:
[exec] (9562) *--@ ""Publish request publish-20161012-1230 for CaseManagement>
[exec] (9563) ---@ ""Publish request publish-20161012-1224 for CaseManagement>
[exec] (9564) ---@ ""Publish request publish-20161012-1123 for CaseManagement>
[exec] (9565) ---@ ""Publish request publish-20161012-1115 for ProviderStream>
[exec] (9566) ---@ ""Publish request publish-20161012-0909 for ProviderStream>
[exec] (9567) ---@ ""Publish request publish-20161012-0716 for BSLFrameworkSt>
[exec] (9568) ---@ ""Publish request publish-20161011-2001 for ProviderStream>
[exec] (9569) ---@ ""Publish request publish-20161011-1305 for CaseManagement>
[exec] (9570) ---@ ""Publish request publish-20161011-1056 for CaseManagement>
[exec] (9571) ---@ ""Publish request publish-20161011-0648 for CaseManagement>
[exec] (9572) ---@ ""Publish request publish-20161011-0642 for CaseManagement>
[exec] (9573) ---@ ""Publish request publish-20161011-0637 for CaseManagement>
[exec] (9574) ---@ ""Publish request publish-20161011-0613 for CaseManagement>
[exec] (9575) ---@ ""Publish request publish-20161007-1254 for BSLFrameworkSt>
[exec] (9542) ---@ ""Publish request publish-20161007-1137 for BSLFrameworkSt>
[exec] Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.ibm.team.filesystem.client.internal.http.HttpConnection$1
[echo] Result: 0 - Command completed successfully
[echo] Checking in files at /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] scm --non-interactive checkin -d /builds/jbe11/ml/publish-20161012-1230/workspace .
[exec] Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.ibm.team.filesystem.client.internal.http.HttpConnection$1
[echo] Result: 0 - Command completed successfully
[echo] Delivering ChangeSet from /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] scm --non-interactive deliver -d /builds/jbe11/ml/publish-20161012-1230/workspace
[exec] Process Reports:
[exec] Name: Deliver
[exec] Participant Reports:
[exec] Name: Require Work Items and Comments
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] A work item must be associated with the change set.
[exec] Problem running 'deliver':
[exec] 'Deliver' failed. Preconditions have not been met: A work item must be associated with the change set.
[exec] Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.ibm.team.filesystem.client.internal.http.HttpConnection$1
[exec] Result: 17
[echo] Result: 17 - The requested operation was blocked by Team Process.
2 answers
Could you confirm if you are not consuming the process specifications from the Parent project area for the PA where you see the problem. In other words are you using process sharing? If thats the case there is an option to set permissions/preconditions final in the Parent Project area and what you set in child would not matter.
Comments
Please carefully read this article: Process behavior lookup in Rational Team Concert 2.0 , it should give you a good idea where to look.
Please also note that it is possible to link work items to change sets in two different ways and only one would work for the precondition. Not very likely that you have this issue, however read https://jazz.net/wiki/bin/view/Deployment/MultipleCCMAppsUserPerspective#Operational_Behavior_Limitations just to make sure.
Please also note that it is possible to link work items to change sets in two different ways and only one would work for the precondition. Not very likely that you have this issue, however read https://jazz.net/wiki/bin/view/Deployment/MultipleCCMAppsUserPerspective#Operational_Behavior_Limitations just to make sure.
Comments
Naveen Krishnan
Oct 12 '16, 3:55 p.m.Kevin Ramer
Oct 12 '16, 4:27 p.m.Lily Wang
Oct 12 '16, 11:53 p.m.Don Yang
Oct 13 '16, 12:47 a.m.Naveen Krishnan
unknown