This endpoint allows for retrieving the supported targets and build options.
It returns the configured targets.json
(see here).
curl -X GET "https://cloudbuild.edgetx.org/api/targets"
This request allows for creating build jobs. In case this build job
(uniquely identified by [commit hash, target, flags]
) already exists,
its current status is returned. If the build job does not exist, it will
be created.
cat << EOF > body.json
{
"release": "v2.9.0",
"target": "x9e",
"flags": [
{
"name": "sticks",
"value": "HORUS"
}
]
}
EOF
curl -X POST -H "Content-Type: application/json" -d @body.json \
https://cloudbuild.edgetx.org/api/jobs
- body should respect the following schema:
{
"release": "v2.9.0",
"target": "x9e",
"flags": [
{
"name": "sticks",
"value": "HORUS"
}
]
}
This request allows for fetching the status of an existing build jobs.
Build jobs are uniquely identified by [commit hash, target, flags]
.
cat << EOF > body.json
{
"release": "v2.9.0",
"target": "x9e",
"flags": [
{
"name": "sticks",
"value": "HORUS"
}
]
}
EOF
curl -X POST -H "Content-Type: application/json" -d @body.json \
https://cloudbuild.edgetx.org/api/status
- body should respect the following schema:
{
"release": "v2.9.0",
"target": "x9e",
"flags": [
{
"name": "sticks",
"value": "HORUS"
}
]
}
All requests will return a JSON formated reply on errors.
Example:
{
"error": "option flag not supported: ppm_unit=USE"
}