summaryrefslogtreecommitdiff
path: root/zuul/web
diff options
context:
space:
mode:
authorMatthieu Huin <mhuin@redhat.com>2019-11-21 15:18:45 +0100
committerTobias Henkel <tobias.henkel@bmw.de>2019-12-10 07:33:30 +0100
commita0015014c94b4b8a51327cfdbb737eb7fed5b659 (patch)
treedd0399930a3de08f36c86970ad569a42622af927 /zuul/web
parent951c4058452576d58e80e1c0dbb7f37eeb04338c (diff)
downloadzuul-a0015014c94b4b8a51327cfdbb737eb7fed5b659.tar.gz
enqueue: make trigger deprecated
The patchset or ref, pipeline and project should be enough to trigger an enqueue. The trigger argument is not validated or used anymore when enqueueing via RPC. Change-Id: I9166e6d44291070f01baca9238f04feedcee7f5b
Diffstat (limited to 'zuul/web')
-rwxr-xr-xzuul/web/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zuul/web/__init__.py b/zuul/web/__init__.py
index 12433ca12..31b147d43 100755
--- a/zuul/web/__init__.py
+++ b/zuul/web/__init__.py
@@ -310,9 +310,9 @@ class ZuulWebAPI(object):
tenant, project))
body = cherrypy.request.json
- if all(p in body for p in ['trigger', 'change', 'pipeline']):
+ if all(p in body for p in ['change', 'pipeline']):
return self._enqueue(tenant, project, **body)
- elif all(p in body for p in ['trigger', 'ref', 'oldrev',
+ elif all(p in body for p in ['ref', 'oldrev',
'newrev', 'pipeline']):
return self._enqueue_ref(tenant, project, **body)
else: