Sha256: 309882c28eb0ff666eddc77c632d253fc23076b96e201f3b2ad7875acb45f3ee

Contents?: true

Size: 738 Bytes

Versions: 12

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

module Datadog
  module CI
    module Ext
      module Environment
        module Providers
          # Teamcity: https://www.jetbrains.com/teamcity/
          # Environment variables docs: https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html
          class Teamcity < Base
            def self.handles?(env)
              env.key?("TEAMCITY_VERSION")
            end

            def provider_name
              Provider::TEAMCITY
            end

            def job_name
              env["TEAMCITY_BUILDCONF_NAME"]
            end

            def job_url
              env["BUILD_URL"]
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datadog-ci-1.12.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.11.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.10.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.9.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.8.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.8.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.7.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.6.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.5.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.4.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.4.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.3.0 lib/datadog/ci/ext/environment/providers/teamcity.rb