[build] Fix script that trigger downstream jobs

The API now replies with a 200 when the request is successful.
This commit is contained in:
Thiago Marcos P. Santos
2020-04-28 00:04:20 +03:00
parent 0d77ec465a
commit 34e475c3ac

View File

@@ -25,7 +25,7 @@ def TriggerPiperline(slug, token, branch, params):
r = requests.post(url, auth=(token, ""), headers=headers, json=data)
if r.status_code != 201:
if r.status_code != 201 and r.status_code != 200:
print("Error triggering the CircleCI: %s." % r.json()["message"])
sys.exit(1)