diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-17 09:10:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-17 09:10:44 +0000 |
commit | b9b58dba70466949d761132d2d96f0f24c0b469c (patch) | |
tree | 12fa5fa325cb89b7a5620f5d5556d3a80c931b8f /scripts/api | |
parent | 7118851f0272b099335a34d8ca18a045aa5de51d (diff) | |
download | gitlab-ce-b9b58dba70466949d761132d2d96f0f24c0b469c.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/api')
-rw-r--r-- | scripts/api/pipeline_failed_jobs.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 |