You are viewing an old version (v. 3) of this page.
The latest version is v. 4, last edited on Mar 13, 2020
(view differences
|
)
<< View previous version | view page history | view next version >>
<< View previous version | view page history | view next version >>
If your build tool is not directly supported by QuickBuild, you may utilize the command build step to run your builds as long as your build can be performed from command line non-interactively. To add a command build step, choose Build -> Shell/Batch Command from the step menu.
Sometimes it is desirable to call back into QuickBuild while executing the command. To support this, QuickBuild treats all output lines between "## Begin QuickBuild Script" and "## End QuickBuild Script" as script to be executed.
Some examples:
- Set build version
version=6.0.0 echo "## Begin QuickBuild Script" echo "groovy:build.setVersion('$version')" echo "## End QuickBuild Script"
- Set value of a variable
echo "## Begin QuickBuild Script" echo "groovy:vars.get('somevar').setValue('some value')" echo "## End QuickBuild Script"