Class: Datadog::CI::Ext::Environment::Providers::Bitrise
- Inherits:
-
Base
- Object
- Base
- Datadog::CI::Ext::Environment::Providers::Bitrise
show all
- Defined in:
- lib/datadog/ci/ext/environment/providers/bitrise.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_or_tag, #git_commit_author_date, #git_commit_committer_date, #initialize, #job_name, #job_url, #node_labels, #node_name, #stage_name
Class Method Details
.handles?(env) ⇒ Boolean
13
14
15
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 13
def self.handles?(env)
env.key?("BITRISE_BUILD_SLUG")
end
|
Instance Method Details
#git_branch ⇒ Object
49
50
51
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 49
def git_branch
env["BITRISEIO_GIT_BRANCH_DEST"] || env["BITRISE_GIT_BRANCH"]
end
|
#git_commit_author_email ⇒ Object
65
66
67
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 65
def git_commit_author_email
env["GIT_CLONE_COMMIT_AUTHOR_EMAIL"]
end
|
#git_commit_author_name ⇒ Object
61
62
63
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 61
def git_commit_author_name
env["GIT_CLONE_COMMIT_AUTHOR_NAME"]
end
|
#git_commit_committer_email ⇒ Object
73
74
75
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 73
def git_commit_committer_email
env["GIT_CLONE_COMMIT_COMMITER_EMAIL"] || env["GIT_CLONE_COMMIT_COMMITER_NAME"]
end
|
#git_commit_committer_name ⇒ Object
69
70
71
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 69
def git_commit_committer_name
env["GIT_CLONE_COMMIT_COMMITER_NAME"]
end
|
#git_commit_message ⇒ Object
57
58
59
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 57
def git_commit_message
env["BITRISE_GIT_MESSAGE"]
end
|
#git_commit_sha ⇒ Object
45
46
47
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 45
def git_commit_sha
env["BITRISE_GIT_COMMIT"] || env["GIT_CLONE_COMMIT_HASH"]
end
|
#git_repository_url ⇒ Object
41
42
43
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 41
def git_repository_url
env["GIT_REPOSITORY_URL"]
end
|
#git_tag ⇒ Object
53
54
55
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 53
def git_tag
env["BITRISE_GIT_TAG"]
end
|
#pipeline_id ⇒ Object
21
22
23
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 21
def pipeline_id
env["BITRISE_BUILD_SLUG"]
end
|
#pipeline_name ⇒ Object
25
26
27
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 25
def pipeline_name
env["BITRISE_TRIGGERED_WORKFLOW_ID"]
end
|
#pipeline_number ⇒ Object
29
30
31
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 29
def pipeline_number
env["BITRISE_BUILD_NUMBER"]
end
|
#pipeline_url ⇒ Object
33
34
35
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 33
def pipeline_url
env["BITRISE_BUILD_URL"]
end
|
#provider_name ⇒ Object
17
18
19
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 17
def provider_name
Provider::BITRISE
end
|
#workspace_path ⇒ Object
37
38
39
|
# File 'lib/datadog/ci/ext/environment/providers/bitrise.rb', line 37
def workspace_path
env["BITRISE_SOURCE_DIR"]
end
|