Skip to content
Snippets Groups Projects
Commit ef833a22 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Give latest succeeded one, don't give pending/running ones

parent b14d40f0
No related branches found
No related tags found
1 merge request!5142Add a download buttons for Build Artifacts
Pipeline #
Loading
Loading
@@ -61,7 +61,9 @@ class Projects::ArtifactsController < Projects::ApplicationController
 
def build_from_ref
if params[:ref]
project.builds_for(params[:build_name], params[:ref]).latest.first
builds = project.builds_for(params[:build_name], params[:ref])
builds.latest.success.first
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment