Let's take test child configuration as example. From the drop down menu of property next build version, choose date and iteration, a complicated value contains quite a lot of OGNL expressions will be set for next build version. It will generate versions like 2005-Sep-25.4 as default, where 2005-sep-25 indicates date of the build, and 4 here means iterations in this date.
If you are not satisfied with the format of this default one, you can modify the value of next build version. Before doing this, make sure you know the grammar of OGNL expressions as well as exposed date and time properties in QuickBuild. For example, you can add the string myproduct-QA- at the very start of next build version, then, the version generated will like myproduct-QA-2005-Sep-25.4, myproduct-QA-2005-Sep-25.5, etc.
![]() | Note |
---|---|
When you choose date and iteration as next build version, and run the configuration, QuickBuild will automatically put two variables in current configuration, viz. day and dayIterator. For variables that have not been defined (either in current configuration or in ancestor configurations), QuickBuild will assume it has an empty value when referenced as string, or 0 when referenced as number. And QuickBuild will automatically create these variables in current configuration if they have been assigned values. |