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

Build with Arbitrary Command

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:

  1. Set build version
    echo "## Begin QuickBuild Script"
    echo "groovy:build.setVersion('$version')"
    echo "## End QuickBuild Script"
  2. Set value of a variable
    echo "## Begin QuickBuild Script"
    echo "groovy:vars.get('somevar').setValue('some value')"
    echo "## End QuickBuild Script"


Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.