Skip to main content
Version: QB12

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

    version=6.0.0
    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"