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

Trigger Build via GET Request

Version 1 by Robin Shen
on Mar 01, 2020 14:30.


 
compared with
Current by Robin Shen
on Mar 01, 2020 14:33.


 
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.

 Build can be triggered by posting build request as described in page [interact with build requests]. Sometimes it is useful to trigger build via GET request, and here is how:
 # Create a build request XML file, say _request.xml_ Refer to _request new build_ section of [interact with build requests] on how to create build request XML
 # Base64 and urlencode the xml file
 {code}
 base64 request.xml | xargs urlencode
 {code}
  On Ubuntu, you will need to call _sudo apt install gridsite-clients_ if _urlencode_ is not available
 # Trigger build via below url:
 {code}
 http://localhost:8810/rest/trigger?build_request=<output of above step>
 {code}
 You will need to use http BASIC authentication to login as authorized QuickBuild user if the anonymous does not have RUN_BUILD permission for the requested configuration.