Allow finding retried and latest pipeline jobs
What does this MR do and why?
Adds a new argument to Pipeline.jobs
to allow filtering
by latest/retried status.
See: #365345
Example GraphQL Query
Find only current failures:
query($id: MergeRequestID!) {
mergeRequest(id: $id) {
headPipeline {
status
finishedAt startedAt createdAt duration
latest: jobs(retried: false) {
nodes { name retried }
}
retried: jobs(retried: true) {
nodes { name retried }
}
}
}
}
How to set up and validate locally
- Create a pipeline
- Retry one or more jobs
- Use the above GraphQL query
The retried jobs should only appear in the retried
collection, and their
replacements in the latest
collection.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.