Class: TestDots::CIAdapters::Jenkins

Inherits:
Base
  • Object
show all
Defined in:
lib/test_dots/ci_adapters/jenkins.rb

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 4

def active?
  ENV.has_key?('JENKINS_URL')
end

#branchObject



8
9
10
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 8

def branch
  ENV['GIT_BRANCH']
end

#buildObject



12
13
14
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 12

def build
  ENV['BUILD_NUMBER']
end

#urlObject



16
17
18
# File 'lib/test_dots/ci_adapters/jenkins.rb', line 16

def url
  ENV['BUILD_URL']
end