I tried this function a few months ago, but I donβt use it anymore (simply because I do not need it, and not because it is not a good function).
Basically, you define an n axis, each axis is a property with several values.
Letβs go through an example: you define the "JDK" axis with possible values ββof "1.4", "1.5", "1.6", and you define another property database where the possible values ββare "oracle", MySQL ".
Thus, Hudson will launch your assembly 6 times:
- with JDK 1.4, with the property database = oracle (i.e., the JVM starts with -Ddatabase = oracle)
- with JDK 1.5, with property base = oracle
- with JDK 1.6, with property base = oracle
- with JDK 1.4, with property database = mysql
- with JDK 1.5, with property database = mysql
- with JDK 1.6, with property base = mysql
Then, once everything is finished, you can see the results for each iteration.
This feature can be really useful when you need to test your application in several environments (in my example with different versions of the JDK or database).
Note that in addition to the JDK axis, you must independently manage the Hudson property. In my example, the application should consider the "database" property. In the end, a good idea is to use this property to include a specific profile in the Maven2 configuration if you are designing mavenized (see here for more details on this).
Hope my explanations are clear enough :)
romaintaz Jan 08 '09 at 14:07 2009-01-08 14:07
source share