mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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: Cleber Rosa <crosa@redhat.com> Message-Id: <20200904164258.240278-4-crosa@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
6dfcbff8bf
commit
db5424dfda
1 changed files with 1 additions and 1 deletions
|
@ -77,8 +77,8 @@ def wait_on_pipeline_success(timeout, interval,
|
||||||
|
|
||||||
status = get_pipeline_status(project_id, commit_sha)
|
status = get_pipeline_status(project_id, commit_sha)
|
||||||
if status['status'] == 'running':
|
if status['status'] == 'running':
|
||||||
time.sleep(interval)
|
|
||||||
print('running...')
|
print('running...')
|
||||||
|
time.sleep(interval)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if status['status'] == 'success':
|
if status['status'] == 'success':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue