Module: Ci::BuildsHelper
- Defined in:
- app/helpers/ci/builds_helper.rb
Instance Method Summary collapse
- #build_failed_issue_options ⇒ Object
- #build_summary(build, skip: false) ⇒ Object
- #javascript_build_options ⇒ Object
- #sidebar_build_class(build, current_build) ⇒ Object
Instance Method Details
#build_failed_issue_options ⇒ Object
33 34 35 36 37 38 |
# File 'app/helpers/ci/builds_helper.rb', line 33 def { title: _("Job Failed #%{build_id}") % { build_id: @build.id }, description: project_job_url(@project, @build) } end |
#build_summary(build, skip: false) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/ci/builds_helper.rb', line 5 def build_summary(build, skip: false) if build.has_trace? if skip link_to _('View job log'), pipeline_job_url(build.pipeline, build) else build.trace.html(last_lines: 10).html_safe end else _('No job log') end end |
#javascript_build_options ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'app/helpers/ci/builds_helper.rb', line 24 def { page_path: project_job_path(@project, @build), build_status: @build.status, build_stage: @build.stage, log_state: '' } end |
#sidebar_build_class(build, current_build) ⇒ Object
17 18 19 20 21 22 |
# File 'app/helpers/ci/builds_helper.rb', line 17 def (build, current_build) build_class = [] build_class << 'active' if build.id === current_build.id build_class << 'retried' if build.retried? build_class.join(' ') end |