Class: BuildLights::CcNet
- Inherits:
-
Object
- Object
- BuildLights::CcNet
- Defined in:
- lib/ccnet.rb
Instance Method Summary collapse
- #failed_jobs ⇒ Object
-
#initialize(uri, parser = XmlParser) ⇒ CcNet
constructor
A new instance of CcNet.
Constructor Details
Instance Method Details
#failed_jobs ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/ccnet.rb', line 11 def failed_jobs @doc.search(:Project).map do |project| name = project[:name] status = project[:lastBuildStatus] puts "#{name} -> #{status}" if $verbose failed = /FAIL/i.match(status) name if failed end.compact end |