Skip to main content
Version: QB14

Use Same Version When Promote Builds

Situation

During a promotion process, make sure that the new build has the same version as the source build.

Demonstration

  1. Visit latest build of QA configuration, and click the promote button.
  2. Wait a short while, and refresh the page, a new build will be generated as result of the promotion, and the version will be the same as the source build.

Resolution

  1. Visit promotion setting of QA configuration. A variable named version is defined for promotion release with the value ${build.version} . This tells QuickBuild to pass variable version to the release configuration using version of current build during the promotion process.
  2. Visit general setting of Release configuration. The property next build version is defined as ${vars.get("version")}. This tells QuickBuild to use value of variable as version of the build being generated during promotion process.
info

The variable name does not need to be version . You may use any other variable name as long as they are consistent in step 1 and step 2.