Sha256: b2f110e2b74fa0b9cba0060561d095ddf3f58219451e10ae4d48bd28806904a5

Contents?: true

Size: 635 Bytes

Versions: 3

Compression:

Stored size: 635 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 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

3 entries across 3 versions & 1 rubygems

Version Path
datadog-ci-0.2.0 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.1.1 lib/datadog/ci/ext/environment/providers/teamcity.rb
datadog-ci-0.1.0 lib/datadog/ci/ext/environment/providers/teamcity.rb