Skip to content
Snippets Groups Projects
Commit db5424df authored by Cleber Rosa's avatar Cleber Rosa Committed by Thomas Huth
Browse files

scripts/ci/gitlab-pipeline-status: give early feedback on running pipelines


When waiting for a pipeline to run and finish, it's better to give
early feedback, and then sleep and wait, than the other wait around.

Specially for the first iteration, it's frustrating to see nothing
while the script is sleeping.

Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
Message-Id: <20200904164258.240278-4-crosa@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
parent 6dfcbff8
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,8 @@ def wait_on_pipeline_success(timeout, interval,
status = get_pipeline_status(project_id, commit_sha)
if status['status'] == 'running':
time.sleep(interval)
print('running...')
time.sleep(interval)
continue
if status['status'] == 'success':
......
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