...
When the build is started, the request to the queued build (/app/rest/buildQueue/XXX) will return running/finished build data. This way, you can monitor the build completeness by querying build details using the "href
" attribute of the build details returned on build triggering, until the build has the state="finished"
attribute. (There is a related outstanding issue.)
Build node
...
example
Basic build for a build configuration:
Code Block | ||
---|---|---|
| ||
<build>
<buildType id="buildConfID"/>
</build>
|
Build for a branch marked as personal with a fixed agent, comment and a custom parameter:
...
Build on a specified change, forced rebuild of all dependencies and clean sources before the build, moved to the build queue top on triggering. (Please note that the change is set via the change's internal modification id, not revision. The id can be seen in the change node listed by the REST API or in the URL of the change detail UI page):
Code Block | ||||
---|---|---|---|---|
| ||||
<build> <triggeringOptions cleanSources="true" rebuildAllDependencies="true" queueAtTop="true"/> <buildType id="buildConfID"/> <lastChanges> <change id="modificationId"/> </lastChanges> </build> |
...