Set up Static Dependency

QuickBuild2 Documentation

Situation

ProductA and componentA build independently as different projects. During build process of productA, build result of specified version of componentA should be retrieved and used. This specified version will not change even if componentA has a new version.

Demonstration

  1. Visit the demo project productA, and hover mouse over the dependencies link in the build summary section, and you will see that current build depends on version 1.0.10 of componentA.
  2. Switch to componentA, and click the run button to generate a new version of componentA.
  3. Switch back to productA, and click the run button to build productA. When build finishes, examine the dependency again, and it is still using version 1.0.10 of componentA.

Resolution

  1. Visit repositories definition of productA. There are two repositories defined: component-a and product-a. Repository product-a is used to retrieve source code of productA from SCM, while repository component-a is used to retrieve build result of componentA. Repository component-a is defined to retrieve all published jars from version 1.0.10 of componentA.
  2. Visit step definitions of productA. Two checkout steps are defined to checkout repository product-a and component-a respectively.

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.