It's all about the answers!

Ask a question

Get only Work Items concerned by the Current Build

Philippe Krief (561155) | asked Jun 07 '12, 5:51 p.m.
edited Aug 08 '12, 1:39 p.m. by Jared Burns (4.5k29)

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

permanent link
David Olsen (5237) | answered Jun 07 '12, 8:06 p.m.
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
Jared Burns selected this answer as the correct answer

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.