Class: TestDots::CIAdapters::Jenkins
- Defined in:
- lib/test_dots/ci_adapters/jenkins.rb
Instance Method Summary collapse
Instance Method Details
#active? ⇒ Boolean
4 5 6 |
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 4 def active? ENV.has_key?('JENKINS_URL') end |
#branch ⇒ Object
8 9 10 |
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 8 def branch ENV['GIT_BRANCH'] end |
#build ⇒ Object
12 13 14 |
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 12 def build ENV['BUILD_NUMBER'] end |
#url ⇒ Object
16 17 18 |
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 16 def url ENV['BUILD_URL'] end |