Class: Datadog::CI::Ext::Environment::Providers::Teamcity

Inherits:
Base
  • Object
show all
Defined in:
lib/datadog/ci/ext/environment/providers/teamcity.rb

Overview

Instance Attribute Summary

Attributes inherited from Base

#env

Instance Method Summary collapse

Methods inherited from Base

#ci_env_vars, #git_branch, #git_branch_or_tag, #git_commit_author_date, #git_commit_author_email, #git_commit_author_name, #git_commit_committer_date, #git_commit_committer_email, #git_commit_committer_name, #git_commit_message, #git_commit_sha, #git_repository_url, #git_tag, #initialize, #node_labels, #node_name, #pipeline_id, #pipeline_name, #pipeline_number, #pipeline_url, #stage_name, #workspace_path

Constructor Details

This class inherits a constructor from Datadog::CI::Ext::Environment::Providers::Base

Instance Method Details

#job_nameObject



17
18
19
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 17

def job_name
  env["TEAMCITY_BUILDCONF_NAME"]
end

#job_urlObject



21
22
23
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 21

def job_url
  env["BUILD_URL"]
end

#provider_nameObject



13
14
15
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 13

def provider_name
  "teamcity"
end