Do not check Greenwave gating status for scratch builds.

Scratch builds cannot be gated. They stay in the `done` state forever.
Therefore it is useless to query Greenwave for its status in the Poller.
This commit is contained in:
Jan Kaluza
2019-08-19 08:15:01 +02:00
parent 796a367457
commit 80fca557af
3 changed files with 16 additions and 8 deletions

View File

@@ -1007,7 +1007,7 @@ def submit_module_build(db_session, username, mmd, params):
# In case the branch is defined, check whether user is allowed to submit
# non-scratch build from this branch. Note that the branch is always defined
# for official builds from SCM, because it is requested in views.py.
branch = params.get("branch", None)
branch = params.get("branch")
if branch:
for regex in conf.scratch_build_only_branches:
branch_search = re.search(regex, branch)