Class: Datadog::CI::Ext::Environment::Providers::Teamcity
- Defined in:
- lib/datadog/ci/ext/environment/providers/teamcity.rb
Overview
Teamcity: www.jetbrains.com/teamcity/ Environment variables docs: www.jetbrains.com/help/teamcity/predefined-build-parameters.html
Instance Attribute Summary
Attributes inherited from Base
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
Constructor Details
This class inherits a constructor from Datadog::CI::Ext::Environment::Providers::Base
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 |