diff options
author | Cleber Rosa <crosa@redhat.com> | 2020-09-04 12:42:54 -0400 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-10-13 12:48:17 +0200 |
commit | db5424dfda1329da226ad98904c3a26fc9f7310f (patch) | |
tree | d487c681bc4e458bb8b82379f07a692d1cbd9f85 /scripts | |
parent | 6dfcbff8bf7ca8c52a5ee2d351ec9c291e22fd5e (diff) |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/gitlab-pipeline-status | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci/gitlab-pipeline-status b/scripts/ci/gitlab-pipeline-status index 2a36f74696..18609553be 100755 --- a/scripts/ci/gitlab-pipeline-status +++ b/scripts/ci/gitlab-pipeline-status @@ -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': |