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 gitlab
import logging import logging
import re import re
import time
_from_rx = re.compile(r'^FROM\s+(.*)$') _from_rx = re.compile(r'^FROM\s+(.*)$')
...@@ -92,9 +93,9 @@ def rebuild_deps(gitlab_url, registry_hostname, gitlab_token, ...@@ -92,9 +93,9 @@ def rebuild_deps(gitlab_url, registry_hostname, gitlab_token,
logging.info('rebuilding %s', project.path_with_namespace) logging.info('rebuilding %s', project.path_with_namespace)
if not dry_run: if not dry_run:
pipeline = rebuild(project, wait) pipeline = rebuild(project, wait)
if pipeline.status != 'success': if pipeline.status not in ('success', 'pending'):
logging.error('ERROR: build failed for %s', logging.error('ERROR: build failed for %s (%s)',
project.path_with_namespace) project.path_with_namespace, pipeline)
return return
if recurse: if recurse:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment