Class: JenkinsJob::Postbuild::LogParser

Inherits:
BasicObject
Defined in:
lib/rubyjobbuilderdsl/postbuild/logparser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule_file) ⇒ LogParser

Returns a new instance of LogParser.



6
7
8
9
10
# File 'lib/rubyjobbuilderdsl/postbuild/logparser.rb', line 6

def initialize(rule_file)
  @rule_file_ = rule_file
  @unstable_on_warning_ = false
  @fail_on_error_ = false
end

Instance Attribute Details

#fail_on_error_Object (readonly)

Returns the value of attribute fail_on_error_.



4
5
6
# File 'lib/rubyjobbuilderdsl/postbuild/logparser.rb', line 4

def fail_on_error_
  @fail_on_error_
end

#rule_file_Object (readonly)

Returns the value of attribute rule_file_.



4
5
6
# File 'lib/rubyjobbuilderdsl/postbuild/logparser.rb', line 4

def rule_file_
  @rule_file_
end

#unstable_on_warning_Object (readonly)

Returns the value of attribute unstable_on_warning_.



4
5
6
# File 'lib/rubyjobbuilderdsl/postbuild/logparser.rb', line 4

def unstable_on_warning_
  @unstable_on_warning_
end

Instance Method Details

#fail_on_error(value = true) ⇒ Object



16
17
18
# File 'lib/rubyjobbuilderdsl/postbuild/logparser.rb', line 16

def fail_on_error(value = true)
  @fail_on_error_ = value
end

#unstable_on_warning(value = true) ⇒ Object



12
13
14
# File 'lib/rubyjobbuilderdsl/postbuild/logparser.rb', line 12

def unstable_on_warning(value = true)
  @unstable_on_warning_ = value
end