2018-09-25 23:45:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-23 09:20:59 -04:00
|
|
|
class Projects::BuildsController < Projects::ApplicationController
|
2017-05-23 11:42:26 -04:00
|
|
|
before_action :authorize_read_build!
|
|
|
|
|
2020-10-08 14:08:32 -04:00
|
|
|
feature_category :continuous_integration
|
|
|
|
|
2017-05-23 09:20:59 -04:00
|
|
|
def index
|
2017-06-29 13:06:35 -04:00
|
|
|
redirect_to project_jobs_path(project)
|
2017-05-23 09:20:59 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def show
|
2017-06-29 13:06:35 -04:00
|
|
|
redirect_to project_job_path(project, job)
|
2017-05-23 09:20:59 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def raw
|
2017-06-29 13:06:35 -04:00
|
|
|
redirect_to raw_project_job_path(project, job)
|
2017-05-23 09:20:59 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def job
|
|
|
|
@job ||= project.builds.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|