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

Build with Arbitrary Command

Version 3 by Robin Shen
on Mar 13, 2020 13:57.


compared with
Current by Robin Shen
on Mar 13, 2020 14:00.


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

View page history


There are 1 changes. View first change.

 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.
  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}