Class: GenericCommitStatus

Inherits:
CommitStatus
  • Object
show all
Defined in:
app/models/generic_commit_status.rb

Overview

Schema Information

Table name: ci_builds

id                 :integer          not null, primary key
project_id         :integer
status             :string
finished_at        :datetime
trace              :text
created_at         :datetime
updated_at         :datetime
started_at         :datetime
runner_id          :integer
coverage           :float
commit_id          :integer
commands           :text
job_id             :integer
name               :string
deploy             :boolean          default(FALSE)
options            :text
allow_failure      :boolean          default(FALSE), not null
stage              :string
trigger_request_id :integer
stage_idx          :integer
tag                :boolean
ref                :string
user_id            :integer
type               :string
target_url         :string
description        :string
artifacts_file     :text
gl_project_id      :integer
artifacts_metadata :text
erased_by_id       :integer
erased_at          :datetime

Constant Summary

Constants included from Statuseable

Statuseable::AVAILABLE_STATUSES

Instance Method Summary collapse

Methods inherited from CommitStatus

#before_sha, #duration, #ignored?, stages, stages_status, #stuck?

Methods included from Statuseable

#active?, #complete?, #started?

Instance Method Details

#set_default_valuesObject


44
45
46
47
# File 'app/models/generic_commit_status.rb', line 44

def set_default_values
  self.context ||= 'default'
  self.stage ||= 'external'
end

#tagsObject


49
50
51
# File 'app/models/generic_commit_status.rb', line 49

def tags
  [:external]
end