Class: Datadog::CI::Ext::Environment::Providers::LocalGit
- Inherits:
-
Base
- Object
- Base
- Datadog::CI::Ext::Environment::Providers::LocalGit
show all
- Defined in:
- lib/datadog/ci/ext/environment/providers/local_git.rb
Overview
As a fallback we try to fetch git information from the local git repository
Instance Attribute Summary
Attributes inherited from Base
#env
Instance Method Summary
collapse
Methods inherited from Base
#additional_tags, #ci_env_vars, #git_branch_or_tag, handles?, #initialize, #job_name, #job_url, #node_labels, #node_name, #pipeline_id, #pipeline_name, #pipeline_number, #pipeline_url, #provider_name, #stage_name
Instance Method Details
#git_commit_author_date ⇒ Object
41
42
43
|
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 41
def git_commit_author_date
author.date
end
|
#git_commit_author_email ⇒ Object
37
38
39
|
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 37
def git_commit_author_email
author.email
end
|
#git_commit_author_name ⇒ Object
33
34
35
|
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 33
def git_commit_author_name
author.name
end
|
#git_commit_committer_date ⇒ Object
53
54
55
|
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 53
def git_commit_committer_date
committer.date
end
|
#git_commit_committer_email ⇒ Object
49
50
51
|
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 49
def git_commit_committer_email
committer.email
end
|
#git_commit_committer_name ⇒ Object
45
46
47
|
# File 'lib/datadog/ci/ext/environment/providers/local_git.rb', line 45
def git_commit_committer_name
committer.name
end
|
#git_commit_message ⇒ Object
#git_repository_url ⇒ Object