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, Drone, 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.
17
18
19
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 17
def initialize(env)
@env = env
end
|
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
11
12
13
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 11
def env
@env
end
|
Class Method Details
.handles?(_env) ⇒ Boolean
13
14
15
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 13
def self.handles?(_env)
false
end
|
Instance Method Details
#ci_env_vars ⇒ Object
57
58
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 57
def ci_env_vars
end
|
#git_branch ⇒ Object
60
61
62
63
64
65
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 60
def git_branch
return @branch if defined?(@branch)
set_branch_and_tag
@branch
end
|
#git_branch_or_tag ⇒ Object
77
78
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 77
def git_branch_or_tag
end
|
#git_commit_author_date ⇒ Object
80
81
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 80
def git_commit_author_date
end
|
#git_commit_author_email ⇒ Object
83
84
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 83
def git_commit_author_email
end
|
#git_commit_author_name ⇒ Object
86
87
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 86
def git_commit_author_name
end
|
#git_commit_committer_date ⇒ Object
89
90
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 89
def git_commit_committer_date
end
|
#git_commit_committer_email ⇒ Object
92
93
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 92
def git_commit_committer_email
end
|
#git_commit_committer_name ⇒ Object
95
96
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 95
def git_commit_committer_name
end
|
#git_commit_head_author_date ⇒ Object
119
120
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 119
def git_commit_head_author_date
end
|
#git_commit_head_author_email ⇒ Object
122
123
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 122
def git_commit_head_author_email
end
|
#git_commit_head_author_name ⇒ Object
125
126
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 125
def git_commit_head_author_name
end
|
#git_commit_head_committer_date ⇒ Object
128
129
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 128
def git_commit_head_committer_date
end
|
#git_commit_head_committer_email ⇒ Object
131
132
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 131
def git_commit_head_committer_email
end
|
#git_commit_head_committer_name ⇒ Object
134
135
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 134
def git_commit_head_committer_name
end
|
#git_commit_head_message ⇒ Object
116
117
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 116
def git_commit_head_message
end
|
#git_commit_head_sha ⇒ Object
113
114
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 113
def git_commit_head_sha
end
|
#git_commit_message ⇒ Object
98
99
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 98
def git_commit_message
end
|
#git_commit_sha ⇒ Object
101
102
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 101
def git_commit_sha
end
|
#git_pull_request_base_branch ⇒ Object
104
105
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 104
def git_pull_request_base_branch
end
|
#git_pull_request_base_branch_head_sha ⇒ Object
110
111
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 110
def git_pull_request_base_branch_head_sha
end
|
#git_pull_request_base_branch_sha ⇒ Object
107
108
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 107
def git_pull_request_base_branch_sha
end
|
#git_repository_url ⇒ Object
67
68
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 67
def git_repository_url
end
|
#git_tag ⇒ Object
70
71
72
73
74
75
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 70
def git_tag
return @tag if defined?(@tag)
set_branch_and_tag
@tag
end
|
#job_id ⇒ Object
21
22
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 21
def job_id
end
|
#job_name ⇒ Object
24
25
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 24
def job_name
end
|
#job_url ⇒ Object
27
28
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 27
def job_url
end
|
#node_labels ⇒ Object
51
52
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 51
def node_labels
end
|
#node_name ⇒ Object
54
55
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 54
def node_name
end
|
#pipeline_id ⇒ Object
30
31
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 30
def pipeline_id
end
|
#pipeline_name ⇒ Object
33
34
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 33
def pipeline_name
end
|
#pipeline_number ⇒ Object
36
37
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 36
def pipeline_number
end
|
#pipeline_url ⇒ Object
39
40
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 39
def pipeline_url
end
|
#pr_number ⇒ Object
137
138
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 137
def pr_number
end
|
#provider_name ⇒ Object
42
43
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 42
def provider_name
end
|
#stage_name ⇒ Object
45
46
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 45
def stage_name
end
|
#workspace_path ⇒ Object
48
49
|
# File 'lib/datadog/ci/ext/environment/providers/base.rb', line 48
def workspace_path
end
|