Browse Source

ci: retry download artifacts

Fu Hanxi 4 years ago
parent
commit
bb7dcb8113
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/ci/python_packages/gitlab_api.py

+ 2 - 1
tools/ci/python_packages/gitlab_api.py

@@ -98,6 +98,7 @@ class Gitlab(object):
             return res
             return res
         return wrapper
         return wrapper
 
 
+    @retry_download  # type: ignore
     def download_artifact(self, job_id, artifact_path, destination=None):
     def download_artifact(self, job_id, artifact_path, destination=None):
         """
         """
         download specific path of job artifacts and extract to destination.
         download specific path of job artifacts and extract to destination.
@@ -152,7 +153,7 @@ class Gitlab(object):
                     job_id_list.append({"id": job.id, "parallel_num": match.group(3)})
                     job_id_list.append({"id": job.id, "parallel_num": match.group(3)})
         return job_id_list
         return job_id_list
 
 
-    @retry_download
+    @retry_download  # type: ignore
     def download_archive(self, ref, destination, project_id=None):
     def download_archive(self, ref, destination, project_id=None):
         """
         """
         Download archive of certain commit of a repository and extract to destination path
         Download archive of certain commit of a repository and extract to destination path