Commit d5b15f3d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

get builds gitlab

parent 9b20840a
Pipeline #14808 failed with stage
in 3 minutes and 7 seconds
......@@ -345,7 +345,9 @@ class Project(Links, NamedModel, TimeStampedModel):
return self.repo_set.get(forge__source=SOURCES.gitlab, namespace=self.main_namespace)
def ci_jobs(self):
r = self.main_gitlab_repo()
def update(self, only_main_branches=True):
if self.main_namespace is None:
......@@ -591,7 +593,7 @@ class Repo(TimeStampedModel):
return getattr(self, f'get_builds_{self.forge.get_source_display()}')()
def get_builds_gitlab(self):
for pipeline in self.api_list('/pipelines'):
for pipeline in self.api_list('/pipelines', limit=2):
pid, ref = pipeline['id'], pipeline['ref']
if self.project.tag_set.filter(name=ref).exists():
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment