summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-28 00:04:20 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-28 11:51:06 +0300
commit34e475c3ace28ff774d4669e1c3ecc0d6aea2ca3 (patch)
treeab69a6d8482a91604da93e1e09a53b2c555f4f3d
parent0d77ec465a2da23d137d455950ed501f6ee0840e (diff)
downloadqtlocation-mapboxgl-34e475c3ace28ff774d4669e1c3ecc0d6aea2ca3.tar.gz
[build] Fix script that trigger downstream jobs
The API now replies with a 200 when the request is successful.
-rwxr-xr-xscripts/ci-circleci-start-pipeline.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci-circleci-start-pipeline.py b/scripts/ci-circleci-start-pipeline.py
index a7aa0f49ad..bcd1134a1d 100755
--- a/scripts/ci-circleci-start-pipeline.py
+++ b/scripts/ci-circleci-start-pipeline.py
@@ -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)