Finalize CI job
curl --request POST \
--url http://127.0.0.1:4100/api/ci/jobs/{id}/finalize \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '{}'import requests
url = "http://127.0.0.1:4100/api/ci/jobs/{id}/finalize"
payload = {}
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://127.0.0.1:4100/api/ci/jobs/{id}/finalize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"mode": "immediate",
"status": "queued",
"trigger": {},
"caseIds": [
"<string>"
],
"runIds": [
"<string>"
],
"artifacts": {},
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"batchId": "<string>"
}{
"error": "<string>"
}CI
Finalize CI job
POST
/
ci
/
jobs
/
{id}
/
finalize
Finalize CI job
curl --request POST \
--url http://127.0.0.1:4100/api/ci/jobs/{id}/finalize \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '{}'import requests
url = "http://127.0.0.1:4100/api/ci/jobs/{id}/finalize"
payload = {}
headers = {
"x-alibi-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://127.0.0.1:4100/api/ci/jobs/{id}/finalize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"mode": "immediate",
"status": "queued",
"trigger": {},
"caseIds": [
"<string>"
],
"runIds": [
"<string>"
],
"artifacts": {},
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"batchId": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
Response
Finalized job