This documentation relates to QuickBuild 10.0.x
Select here if you are using a different version

Build Against Specified Tag

Version 1 by Robin Shen
on Jan 13, 2019 22:25.


 
compared with
Current by Robin Shen
on Feb 25, 2020 09:49.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 2 changes. View first change.

 h1. Situation
 Sometimes it is desirable to run build against an existing SCM tag.
  
 h1. Demonstration
 Visit the [demo project|http://demo.pmease.com/overview/95], and hit the run button. Please wait patiently and then QuickBuild will present a list of available tags in Subversion for user to select from. Select an arbitrary tag, click OK to run the build, and the build will be generated against specified tag.
  Visit the [demo project|http://demo.pmease.com/overview/95], and hit the run button. Please wait patiently and then QuickBuild will present a list of available tags in project repository for user to select from. Select an arbitrary tag, click OK to run the build, and the build will be generated against specified tag.
  
 h1. Resolution
 # Switch to [repository setting of the demo project|http://demo.pmease.com/settings/95/repositories]. The demo Subversion repository is defined with checkout url specified as _https://svn.pmease.com/demos/commons-collections/tags/$\{vars.getValue("tag")}_. The _tag_ variable will be defined later to use the selected tag name.
 # Switch to [variable setting of the demo project|http://demo.pmease.com/settings/95/variables]. The variable _tag_ is set to prompt as a selection box with choices defined as execution result of a groovy script executing the "svn list" command.
 # Switch to [step setting of the demo project|http://demo.pmease.com/settings/95/steps]. Necessary steps are defined here to checkout from the Subversion repository, run Ant build script, and then publish generated artifacts.
  # Switch to [repository setting of the demo project|http://demo.pmease.com/settings/95/repositories]. The demo Subversion repository is defined with _Commit or Tag to Build_ specified as _$\{vars.getValue("tag")}_. The _tag_ variable will be defined later to use the selected tag name.
 # Switch to [variable setting of the demo project|http://demo.pmease.com/settings/95/variables]. The variable _tag_ is set to prompt as a selection box with choices defined as execution result of a groovy script listing available tags via "git ls-remote" command.
 # Switch to [step setting of the demo project|http://demo.pmease.com/settings/95/steps]. Necessary steps are defined here to checkout from the Subversion repository, run Maven build script, and then publish generated artifacts.