Sha256: 556717bb309dd111ed581b0f951dadc0c2101ec476a529d31aa5c334a7b0cbe6

Contents?: true

Size: 352 Bytes

Versions: 38

Compression:

Stored size: 352 Bytes

Contents

module Bozo::Hooks

  class Jenkins

    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

    def self.hosted_in_jenkins?
      not ENV['JENKINS_HOME'].nil?
    end

  end

end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
bozo-scripts-0.10.2 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.10.1 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.10.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.9.1 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.9.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.8.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.7.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.6.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.5.1 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.5.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.4.4 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.4.3 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.4.2 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.4.1 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.4.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.3.3 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.3.2 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.1.11 lib/bozo/hooks/jenkins.rb