From b9b58dba70466949d761132d2d96f0f24c0b469c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 17 Oct 2022 09:10:44 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- scripts/api/pipeline_failed_jobs.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/api') diff --git a/scripts/api/pipeline_failed_jobs.rb b/scripts/api/pipeline_failed_jobs.rb index 3c29e8842d3..c25567af698 100644 --- a/scripts/api/pipeline_failed_jobs.rb +++ b/scripts/api/pipeline_failed_jobs.rb @@ -31,6 +31,13 @@ class PipelineFailedJobs failed_jobs << job end + client.pipeline_bridges(project, pipeline_id, scope: 'failed', per_page: 100).auto_paginate do |job| + next if exclude_allowed_to_fail_jobs && job.allow_failure + + job.web_url = job.downstream_pipeline.web_url # job.web_url is linking to an invalid page + failed_jobs << job + end + failed_jobs end -- cgit v1.2.1