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

Continuous Integration problem with multiple components

So we have this project that is set up like this:

Project Stream has 3 Components:
  • ComponentA
  • ComponentB
  • ComponentC
There is a build definition (maven) for each of these Components:
  • BuildDefinitionA
  • BuildDefinitionB
  • BuildDefinitionC.
BuildDefinitionA is on continuous integration while BuildDefinitionB and BuildDetinitionC are not.
BuildDefinitionA polls every 10 minutes so that whenever there is a change, it will proceed with the build.
However, we wanted it to be set up so that BuildDefinitionA will proceed with the build if and only if the change goes into ComponentA. So if there are changes in ComponentB or ComponentC, we don't want BuildDefinitionA proceed with a build.

Right now, this is not the case. BuildDefinitionA gets triggered regardless which Component gets changed.
I toyed with the idea of having BuildDefinitionA's build workspace not having all the Components (just ComponentA), but this does not seem to work.

Appreciate any thoughts on this matter.

1

0 votes


Accepted answer

Permanent link
You are on the right track.  BuildDefinitionA's build workspace should have only ComponentA in it, not the other two components.  But if that's all you do, then the other two components will be accepted into the build workspace every time you run a build.

To keep the build workspace from accepting the other components, you need to open the build workspace in the Eclipse client, go to the Flow Targets section at the bottom, select the stream, click the Edit button, select "Flow only components checked below", and then select only ComponentA.  If you do that, then BuildDefinitionA should be run only when there are changes to ComponentA.  Changes to the other component should not cause the build to run.

Ralph Schoon selected this answer as the correct answer

2 votes

Comments

That did the trick, thank you!

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
× 12,020

Question asked: Nov 11 '12, 4:13 a.m.

Question was seen: 3,228 times

Last updated: Nov 13 '12, 5:49 a.m.

Confirmation Cancel Confirm