builds_controller.rb 680 Bytes
Newer Older
Lin Jen-Shin's avatar
Lin Jen-Shin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
class Projects::BuildsController < Projects::ApplicationController
  def index
    redirect_to namespace_project_jobs_path(project.namespace, project)
  end

  def show
    redirect_to namespace_project_job_path(project.namespace, project, job)
  end

  def trace
    redirect_to trace_namespace_project_job_path(project.namespace, project, job, format: params[:format])
  end

  def status
    redirect_to status_namespace_project_job_path(project.namespace, project, job, format: params[:format])
  end

  def raw
    redirect_to raw_namespace_project_job_path(project.namespace, project, job)
  end

  private

  def job
    @job ||= project.builds.find(params[:id])
  end
end