Commit 88d81db4 authored by ale's avatar ale
Browse files

Do not fail if a pipeline is pending

parent af41947a
import gitlab
import logging
import re
import time
_from_rx = re.compile(r'^FROM\s+(.*)$')
......@@ -92,9 +93,9 @@ def rebuild_deps(gitlab_url, registry_hostname, gitlab_token,'rebuilding %s', project.path_with_namespace)
if not dry_run:
pipeline = rebuild(project, wait)
if pipeline.status != 'success':
logging.error('ERROR: build failed for %s',
if pipeline.status not in ('success', 'pending'):
logging.error('ERROR: build failed for %s (%s)',
project.path_with_namespace, pipeline)
if recurse:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment