Skip to content

Draft: New UI URL and API endpoint for downloading latest successful job

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 to true)
  • successful_pipeline (boolean, defaults to true)

These parameters will work together with the following logic:

  • When latest_pipeline=true and successful_pipeline=true: Return artifacts from the job in the latest successful pipeline (current behavior)
  • When latest_pipeline=false and successful_pipeline=true: Return artifacts from the job in the latest successful pipeline that included it
  • When latest_pipeline=true and successful_pipeline=false: Return artifacts from the job in the latest pipeline if it was successful
  • When latest_pipeline=false and successful_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 🤖

Merge request reports

Loading