get_build_revision
Retrieve a build’s head commit, Odoo version, and branch-selected Odoo revision plus repository commits to verify what code and Odoo revision a build actually uses.
Instructions
Read what a build of a branch of a project runs: its head commit, its Odoo version, and the Odoo revision its branch has selected, with the commit of each Odoo repository. The build of that number, or the latest one. Odoo.sh ties no Odoo revision to a build, so the branch's may not be the build's. Odoo.sh gives no commit for a submodule, so none is returned, and the result says nothing of whether the repository has any.
Returns: the build's number, name and branch, its head commit, its Odoo version, and its branch's selected Odoo revision, which may not be the build's. There is no submodule commit, since Odoo.sh does not give one. Touches: reads only Bounds: six requests to Odoo.sh; a build older than the branch's latest ones is not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| project | Yes | ||
| build_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | Yes |