Draft: New UI URL and API endpoint for downloading latest successful job
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
I have added new UI URL and API endpoint for downloading latest successful job The UI files have been updated but I am unable to test
This MR implements new filter parameters for both the UI URL and API endpoint to give users more flexibility when downloading artifacts:
-
latest_pipeline
(boolean, defaults totrue
) -
successful_pipeline
(boolean, defaults totrue
)
These parameters will work together with the following logic:
- When
latest_pipeline=true
andsuccessful_pipeline=true
: Return artifacts from the job in the latest successful pipeline (current behavior) - When
latest_pipeline=false
andsuccessful_pipeline=true
: Return artifacts from the job in the latest successful pipeline that included it - When
latest_pipeline=true
andsuccessful_pipeline=false
: Return artifacts from the job in the latest pipeline if it was successful - When
latest_pipeline=false
andsuccessful_pipeline=false
: Return artifacts from the latest successful job regardless of pipeline status
This is because I am on workspaces and can't use a runner currently.
Related to #241205 (closed)
Edited by 🤖 GitLab Bot 🤖