Class: Bozo::Hooks::Jenkins
- Inherits:
-
Object
- Object
- Bozo::Hooks::Jenkins
- Defined in:
- lib/bozo/hooks/jenkins.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.hosted_in_jenkins? ⇒ Boolean
13 14 15 |
# File 'lib/bozo/hooks/jenkins.rb', line 13 def self.hosted_in_jenkins? not ENV['JENKINS_HOME'].nil? end |
Instance Method Details
#pre_build ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/bozo/hooks/jenkins.rb', line 5 def pre_build if Jenkins.hosted_in_jenkins? env['BUILD_URL'] = ENV['BUILD_URL'] env['BUILD_NUMBER'] = ENV['BUILD_NUMBER'] env['BUILD_NAME'] = ENV['JOB_NAME'] end end |