91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# File 'lib/datadog/ci/git/local_repository.rb', line 91
def self.git_repository_url
Telemetry.git_command(Ext::Telemetry::Command::GET_REPOSITORY)
res = nil
duration_ms = Core::Utils::Time.measure(:float_millisecond) do
res = exec_git_command("git ls-remote --get-url")
end
Telemetry.git_command_ms(Ext::Telemetry::Command::GET_REPOSITORY, duration_ms)
res
rescue => e
log_failure(e, "git repository url")
telemetry_track_error(e, Ext::Telemetry::Command::GET_REPOSITORY)
nil
end
|