summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Poignant <oliver@poignant.se>2016-12-12 18:48:31 +0100
committerOliver Poignant <oliver@poignant.se>2016-12-12 18:48:31 +0100
commit45bd2a0b828c85cbd5384e116690e2e181b5becc (patch)
tree6e172f072aa8bde63e61a9ccdf082a24e3a1cee2
parent8c406865ce388c1856f8dab495df4aa11f64f9cd (diff)
parentcce3e4788acc2f76416296f2d84d969784613eed (diff)
downloadGit-Auto-Deploy-45bd2a0b828c85cbd5384e116690e2e181b5becc.zip
Git-Auto-Deploy-45bd2a0b828c85cbd5384e116690e2e181b5becc.tar.gz
Git-Auto-Deploy-45bd2a0b828c85cbd5384e116690e2e181b5becc.tar.bz2
Merge
-rw-r--r--gitautodeploy/parsers/gitlabci.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitautodeploy/parsers/gitlabci.py b/gitautodeploy/parsers/gitlabci.py
index 30a8b5f..22af596 100644
--- a/gitautodeploy/parsers/gitlabci.py
+++ b/gitautodeploy/parsers/gitlabci.py
@@ -18,8 +18,9 @@ class GitLabCIRequestParser(WebhookRequestParser):
# Only add repositories if the build is successful. Ignore it in other case.
if data['build_status'] == "success":
for k in ['url', 'git_http_url', 'git_ssh_url']:
- if k in data['repository']:
- repo_urls.append(data['repository'][k])
+ for n in ['repository', 'project']:
+ if n in data and k in data[n]:
+ repo_urls.append(data[n][k])
else:
action.log_warning("Gitlab CI build '%d' has status '%s'. Not pull will be done" % (data['build_id'], data['build_status']))