Class: Datadog::CI::Ext::Environment::Providers::Teamcity
- Inherits:
-
Base
- Object
- Base
- Datadog::CI::Ext::Environment::Providers::Teamcity
show all
- Defined in:
- lib/datadog/ci/ext/environment/providers/teamcity.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#env
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#additional_tags, #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
Class Method Details
.handles?(env) ⇒ Boolean
13
14
15
|
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 13
def self.handles?(env)
env.key?("TEAMCITY_VERSION")
end
|
Instance Method Details
#job_name ⇒ Object
21
22
23
|
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 21
def job_name
env["TEAMCITY_BUILDCONF_NAME"]
end
|
#job_url ⇒ Object
25
26
27
|
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 25
def job_url
env["BUILD_URL"]
end
|
#provider_name ⇒ Object
17
18
19
|
# File 'lib/datadog/ci/ext/environment/providers/teamcity.rb', line 17
def provider_name
Provider::TEAMCITY
end
|