It's all about the answers!

Ask a question

Continuous Integration problem with multiple components


0
1
Jesse Timbang (3211519) | asked Nov 11 '12, 4:13 a.m.
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.

Accepted answer


permanent link
David Olsen (5237) | answered Nov 12 '12, 12:59 a.m.
JAZZ DEVELOPER
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

Comments
Jesse Timbang commented Nov 13 '12, 5:49 a.m.

That did the trick, thank you!

Your answer


Register or to post your answer.