Class: Datadog::CI::Ext::Environment::Providers::Base
- Inherits:
-
Object
- Object
- Datadog::CI::Ext::Environment::Providers::Base
show all
- Defined in:
- lib/datadog/ci/ext/environment/providers/base.rb
Direct Known Subclasses
Appveyor, AwsCodePipeline, Azure, Bitbucket, Bitrise, Buddy, Buildkite, Circleci, Codefresh, GithubActions, Gitlab, Jenkins, LocalGit, Teamcity, Travis, UserDefinedTags
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(env) ⇒ Base
Returns a new instance of Base.
15
16
17
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 15
def initialize(env)
@env = env
end
|
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
9
10
11
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 9
def env
@env
end
|
Class Method Details
.handles?(_env) ⇒ Boolean
11
12
13
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 11
def self.handles?(_env)
false
end
|
Instance Method Details
99
100
101
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 99
def additional_tags
{}
end
|
#ci_env_vars ⇒ Object
52
53
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 52
def ci_env_vars
end
|
#git_branch ⇒ Object
55
56
57
58
59
60
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 55
def git_branch
return @branch if defined?(@branch)
set_branch_and_tag
@branch
end
|
#git_branch_or_tag ⇒ Object
72
73
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 72
def git_branch_or_tag
end
|
#git_commit_author_date ⇒ Object
75
76
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 75
def git_commit_author_date
end
|
#git_commit_author_email ⇒ Object
78
79
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 78
def git_commit_author_email
end
|
#git_commit_author_name ⇒ Object
81
82
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 81
def git_commit_author_name
end
|
#git_commit_committer_date ⇒ Object
84
85
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 84
def git_commit_committer_date
end
|
#git_commit_committer_email ⇒ Object
87
88
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 87
def git_commit_committer_email
end
|
#git_commit_committer_name ⇒ Object
90
91
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 90
def git_commit_committer_name
end
|
#git_commit_message ⇒ Object
93
94
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 93
def git_commit_message
end
|
#git_commit_sha ⇒ Object
96
97
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 96
def git_commit_sha
end
|
#git_repository_url ⇒ Object
62
63
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 62
def git_repository_url
end
|
#git_tag ⇒ Object
65
66
67
68
69
70
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 65
def git_tag
return @tag if defined?(@tag)
set_branch_and_tag
@tag
end
|
#job_name ⇒ Object
19
20
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 19
def job_name
end
|
#job_url ⇒ Object
22
23
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 22
def job_url
end
|
#node_labels ⇒ Object
46
47
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 46
def node_labels
end
|
#node_name ⇒ Object
49
50
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 49
def node_name
end
|
#pipeline_id ⇒ Object
25
26
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 25
def pipeline_id
end
|
#pipeline_name ⇒ Object
28
29
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 28
def pipeline_name
end
|
#pipeline_number ⇒ Object
31
32
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 31
def pipeline_number
end
|
#pipeline_url ⇒ Object
34
35
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 34
def pipeline_url
end
|
#provider_name ⇒ Object
37
38
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 37
def provider_name
end
|
#stage_name ⇒ Object
40
41
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 40
def stage_name
end
|
#workspace_path ⇒ Object
43
44
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 43
def workspace_path
end
|