]> Git Repo - qemu.git/commitdiff
scripts/ci/gitlab-pipeline-status: give early feedback on running pipelines
authorCleber Rosa <[email protected]>
Fri, 4 Sep 2020 16:42:54 +0000 (12:42 -0400)
committerThomas Huth <[email protected]>
Tue, 13 Oct 2020 10:48:17 +0000 (12:48 +0200)
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 <[email protected]>
Message-Id: <20200904164258[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
scripts/ci/gitlab-pipeline-status

index 2a36f74696b0927bc7196749fad01d5e73a677c3..18609553be8a53a7d858faefe1d84147602340f8 100755 (executable)
@@ -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':
This page took 0.02417 seconds and 4 git commands to generate.