Class: JenkinsJob::BuildStep::PhaseJob

Inherits:
BasicObject
Defined in:
lib/rubyjobbuilderdsl/buildstep/phase_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ PhaseJob

Returns a new instance of PhaseJob.



6
7
8
9
10
11
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 6

def initialize(name)
  @name = name
  @ignore_result_ = false
  @retries_ = 0
  @abort_others_ = false
end

Instance Attribute Details

#abort_others_Object (readonly)

Returns the value of attribute abort_others_.



4
5
6
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 4

def abort_others_
  @abort_others_
end

#ignore_result_Object (readonly)

Returns the value of attribute ignore_result_.



4
5
6
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 4

def ignore_result_
  @ignore_result_
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 4

def name
  @name
end

#retries_Object (readonly)

Returns the value of attribute retries_.



4
5
6
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 4

def retries_
  @retries_
end

Instance Method Details

#abort_others(value = true) ⇒ Object



21
22
23
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 21

def abort_others(value = true)
  @abort_others_ = value
end

#ignore_result(value = true) ⇒ Object



13
14
15
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 13

def ignore_result(value = true)
  @ignore_result_ = value
end

#retries(value) ⇒ Object



17
18
19
# File 'lib/rubyjobbuilderdsl/buildstep/phase_job.rb', line 17

def retries(value)
  @retries_ = value
end