Sha256: b461fe1960ae2d1c1bc82454b44ed2f3a1795abe83310c3368381894adb13efe

Contents?: true

Size: 730 Bytes

Versions: 19

Compression:

Stored size: 730 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
              "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

19 entries across 19 versions & 1 rubygems

Version Path
datadog-ci-1.2.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.1.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.0.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.0.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.0.0.beta6 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.0.0.beta3 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.0.0.beta2 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-1.0.0.beta1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.8.3 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.8.2 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.8.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.8.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.7.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.6.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.5.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.5.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.4.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.4.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.3.0 lib/datadog/ci/ext/environment/providers/teamcity.rb