Get only Work Items concerned by the Current Build
Hi
We love this great feature where we can select in the Build Definition a subset of components to download and build instead of the all repository workspace.
Nevertheless we discovered that the Build Result will display all the work items associated to the changesets of ALL the components.
There is a way to obtain only the WI of the selected components or does it work as designed and I need to create an enhancement for that?
Thanks for your help
We love this great feature where we can select in the Build Definition a subset of components to download and build instead of the all repository workspace.
Nevertheless we discovered that the Build Result will display all the work items associated to the changesets of ALL the components.
There is a way to obtain only the WI of the selected components or does it work as designed and I need to create an enhancement for that?
Thanks for your help
Accepted answer
It is working as designed. The list of work items associated with the build comes from the change sets that were accepted into the build workspace at the beginning of the build. And the accept always accepts changes for all components in the workspace. It doesn't pay attention to the components that will be loaded on the build machine.
Depending on how your build is setup, you might be able to get the behavior you want without needing an enhancement to RTC.
If your build only builds a subset of components that are in your stream, and that subset of components rarely changes, then you should edit the flow target of the build workspace so that only those components flow between the build workspace and the stream. That will prevent change sets from the unwanted component from being accepted into the build workspace, and will prevent the corresponding work items from being associated with the build.
If you frequently change the set of components built by your build (so that the solution in the paragraph above won't work), then I suggest that you don't do that. It is best if each build definition builds approximately the same stuff in every build. You should set up a separate build definition for subset of components that you normally want to build.
--
David Olsen, IBM Rational, Jazz Process Team