Skip to content
Snippets Groups Projects
Commit 88d81db4 authored by ale's avatar ale
Browse files

Do not fail if a pipeline is pending

parent af41947a
No related branches found
No related tags found
No related merge requests found
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,
logging.info('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',
project.path_with_namespace)
if pipeline.status not in ('success', 'pending'):
logging.error('ERROR: build failed for %s (%s)',
project.path_with_namespace, pipeline)
return
if recurse:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment