View Source

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 to execute some scripts 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
{code}
version=6.0.0
echo "## Begin QuickBuild Script"
echo "groovy:build.setVersion('$version')"
echo "## End QuickBuild Script"
{code}
# Set value of a variable
{code}
echo "## Begin QuickBuild Script"
echo "groovy:vars.get('somevar').setValue('some value')"
echo "## End QuickBuild Script"
{code}