Class: Bard::CI::Jenkins
Constant Summary
Constants included from Retryable
Retryable::INITIAL_DELAY, Retryable::MAX_RETRIES
Instance Attribute Summary collapse
-
#last_response ⇒ Object
Returns the value of attribute last_response.
Attributes inherited from Runner
Instance Method Summary collapse
Methods inherited from Runner
Methods included from Retryable
Instance Attribute Details
#last_response ⇒ Object
Returns the value of attribute last_response.
17 18 19 |
# File 'lib/bard/ci/jenkins.rb', line 17 def last_response @last_response end |
Instance Method Details
#console ⇒ Object
12 13 14 15 |
# File 'lib/bard/ci/jenkins.rb', line 12 def console raw = `curl -s #{ci_host}/lastBuild/console` raw[%r{<pre.*?>(.+)</pre>}m, 1] end |
#exists? ⇒ Boolean
8 9 10 |
# File 'lib/bard/ci/jenkins.rb', line 8 def exists? `curl -s -I #{ci_host}/` =~ /\b200 OK\b/ end |