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.18.5 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.18.4 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.18.3 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.18.2 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.18.1 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.18.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.17.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.16.3 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.16.2 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.16.1 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.16.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.15.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.14.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.13.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.12.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.11.0 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.10.6 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.10.5 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.10.4 lib/bozo/hooks/jenkins.rb
bozo-scripts-0.10.3 lib/bozo/hooks/jenkins.rb