Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to avoid work items to be mixed between two build definitions that use different workspaces but common stream?

I have a code stream "Main Development Stream" which has components say:-
  • component 1
  • common component
  • component 2
Now I have got two RTC Build definitions, namely "Main Build Definition" and "Common Build Definition" using two separate RTC build workspaces "Main Build Definition Workspace" and "Common Build Definition Workspace".

Main Build Definition needs to build code in component 1 and component 2 whereas Common Build Definition needs code only from common component.

Below are my expectations:-
  1. Work Items populated in "Main Build Definition" build result as well as the build comparison should show the work items for which the code has been delivered to component 1 and component 2 only, and NOT common component.
  2. Work Items populated in "Common Build Definition" build result as well as the build comparison should show the work items for which the code has been delivered to common component only and NOT component 1 and component 2.
What I actually observe is, the work items populated in the build result and build comparison are for all components mixed.

Please note I want to make the two builds completely independent of each other, and should not mix work items .

I tried the 'Components to exclude' option to exclude components in the build definitions, but it did not seem to have any effect.
I also tried creating "Common Build Definition Workspace" by including just the common component, but the RTC refreshes and accepts other components automatically when we request a new build.

Any pointers to achieve what I want, would be appreciated!

Thanks!

0 votes


Accepted answer

Permanent link
Open "Common Build Definition Workspace" in an editor.  Remove Component 1 and Component 2 from the list of components.  In the Flow Targets section near the bottom of the editor, click on the flow target for the stream.  Click the Edit button.  Select "Flow only components checked below."  Select only Common Component.  Click OK to close the dialog and click Save to save the changes to the repository workspace.

Repeat these steps for "Main Build Definition Workspace," but remove Common Component and flow with Component 1 and Component 2.

Editing the flow target in this way will keep RTC from adding the components back into the workspace when you run a build.

-- David Olsen, IBM Rational, Jazz Process Team
Mangirish Wagle selected this answer as the correct answer

1 vote

Comments

Thanks David! This solved all the issues...

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121
× 383

Question asked: Aug 02 '12, 8:36 a.m.

Question was seen: 5,042 times

Last updated: Aug 07 '12, 4:36 a.m.

Confirmation Cancel Confirm