Skip to content

Commit

Permalink
Merge pull request Druwerd#4 from kirikak2/result_variable_is_not_pre…
Browse files Browse the repository at this point in the history
…sented

bug: @Result in Build class not present.
  • Loading branch information
Druwerd committed May 17, 2011
2 parents 5c2cad9 + 7331848 commit 29d465a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hudson-remote-api/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ def load_build_info
build_info_xml = get_xml(@xml_api_build_info_path)
build_info_doc = REXML::Document.new(build_info_xml)

@result = build_info_doc.elements["/freeStyleBuild/result"].text
if !build_info_doc.elements["/freeStyleBuild/changeSet"].nil?
build_info_doc.elements.each("/freeStyleBuild/changeSet/revision"){|e| @revisions[e.elements["module"].text] = e.elements["revision"].text }
end
end
end
end
end

0 comments on commit 29d465a

Please sign in to comment.