datadog-ci 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -2
  3. data/README.md +21 -2
  4. data/lib/datadog/ci/codeowners/matcher.rb +102 -0
  5. data/lib/datadog/ci/codeowners/parser.rb +42 -0
  6. data/lib/datadog/ci/codeowners/rule.rb +33 -0
  7. data/lib/datadog/ci/concurrent_span.rb +2 -1
  8. data/lib/datadog/ci/configuration/components.rb +59 -57
  9. data/lib/datadog/ci/configuration/settings.rb +21 -0
  10. data/lib/datadog/ci/contrib/cucumber/configuration/settings.rb +4 -1
  11. data/lib/datadog/ci/contrib/cucumber/formatter.rb +69 -38
  12. data/lib/datadog/ci/contrib/cucumber/instrumentation.rb +2 -1
  13. data/lib/datadog/ci/contrib/minitest/configuration/settings.rb +4 -1
  14. data/lib/datadog/ci/contrib/minitest/helpers.rb +2 -1
  15. data/lib/datadog/ci/contrib/minitest/hooks.rb +9 -22
  16. data/lib/datadog/ci/contrib/minitest/patcher.rb +9 -6
  17. data/lib/datadog/ci/contrib/minitest/reporter.rb +50 -0
  18. data/lib/datadog/ci/contrib/minitest/runnable.rb +1 -1
  19. data/lib/datadog/ci/contrib/minitest/runner.rb +41 -0
  20. data/lib/datadog/ci/contrib/rspec/configuration/settings.rb +4 -1
  21. data/lib/datadog/ci/contrib/rspec/example.rb +55 -14
  22. data/lib/datadog/ci/contrib/rspec/example_group.rb +12 -7
  23. data/lib/datadog/ci/contrib/rspec/patcher.rb +10 -1
  24. data/lib/datadog/ci/contrib/rspec/runner.rb +7 -8
  25. data/lib/datadog/ci/ext/app_types.rb +2 -0
  26. data/lib/datadog/ci/ext/environment/providers/local_git.rb +8 -29
  27. data/lib/datadog/ci/ext/settings.rb +2 -0
  28. data/lib/datadog/ci/ext/test.rb +29 -7
  29. data/lib/datadog/ci/ext/transport.rb +19 -1
  30. data/lib/datadog/ci/itr/runner.rb +67 -0
  31. data/lib/datadog/ci/span.rb +51 -2
  32. data/lib/datadog/ci/test.rb +67 -2
  33. data/lib/datadog/ci/test_module.rb +1 -1
  34. data/lib/datadog/ci/test_session.rb +10 -2
  35. data/lib/datadog/ci/test_suite.rb +53 -2
  36. data/lib/datadog/ci/test_visibility/context/local.rb +3 -9
  37. data/lib/datadog/ci/test_visibility/null_recorder.rb +2 -22
  38. data/lib/datadog/ci/test_visibility/recorder.rb +46 -20
  39. data/lib/datadog/ci/test_visibility/serializers/base.rb +6 -5
  40. data/lib/datadog/ci/test_visibility/serializers/span.rb +1 -1
  41. data/lib/datadog/ci/test_visibility/serializers/test_module.rb +1 -1
  42. data/lib/datadog/ci/test_visibility/serializers/test_session.rb +1 -1
  43. data/lib/datadog/ci/test_visibility/serializers/test_suite.rb +1 -1
  44. data/lib/datadog/ci/test_visibility/serializers/test_v1.rb +1 -1
  45. data/lib/datadog/ci/test_visibility/transport.rb +1 -5
  46. data/lib/datadog/ci/transport/api/agentless.rb +63 -0
  47. data/lib/datadog/ci/transport/api/base.rb +10 -14
  48. data/lib/datadog/ci/transport/api/builder.rb +25 -22
  49. data/lib/datadog/ci/transport/api/evp_proxy.rb +47 -7
  50. data/lib/datadog/ci/transport/http.rb +7 -1
  51. data/lib/datadog/ci/transport/remote_settings_api.rb +96 -0
  52. data/lib/datadog/ci/utils/configuration.rb +15 -0
  53. data/lib/datadog/ci/utils/git.rb +70 -0
  54. data/lib/datadog/ci/version.rb +1 -1
  55. data/lib/datadog/ci.rb +40 -56
  56. metadata +12 -90
  57. data/lib/datadog/ci/contrib/minitest/plugin.rb +0 -73
  58. data/lib/datadog/ci/null_span.rb +0 -63
  59. data/lib/datadog/ci/transport/api/ci_test_cycle.rb +0 -30
  60. data/sig/datadog/ci/concurrent_span.rbs +0 -23
  61. data/sig/datadog/ci/configuration/components.rbs +0 -21
  62. data/sig/datadog/ci/configuration/extensions.rbs +0 -9
  63. data/sig/datadog/ci/configuration/settings.rbs +0 -16
  64. data/sig/datadog/ci/contrib/cucumber/configuration/settings.rbs +0 -12
  65. data/sig/datadog/ci/contrib/cucumber/ext.rbs +0 -21
  66. data/sig/datadog/ci/contrib/cucumber/formatter.rbs +0 -48
  67. data/sig/datadog/ci/contrib/cucumber/instrumentation.rbs +0 -16
  68. data/sig/datadog/ci/contrib/cucumber/integration.rbs +0 -26
  69. data/sig/datadog/ci/contrib/cucumber/patcher.rbs +0 -15
  70. data/sig/datadog/ci/contrib/integration.rbs +0 -44
  71. data/sig/datadog/ci/contrib/minitest/configuration/settings.rbs +0 -12
  72. data/sig/datadog/ci/contrib/minitest/ext.rbs +0 -19
  73. data/sig/datadog/ci/contrib/minitest/helpers.rbs +0 -13
  74. data/sig/datadog/ci/contrib/minitest/hooks.rbs +0 -27
  75. data/sig/datadog/ci/contrib/minitest/integration.rbs +0 -26
  76. data/sig/datadog/ci/contrib/minitest/patcher.rbs +0 -15
  77. data/sig/datadog/ci/contrib/minitest/plugin.rbs +0 -31
  78. data/sig/datadog/ci/contrib/minitest/runnable.rbs +0 -24
  79. data/sig/datadog/ci/contrib/rspec/configuration/settings.rbs +0 -12
  80. data/sig/datadog/ci/contrib/rspec/example.rbs +0 -20
  81. data/sig/datadog/ci/contrib/rspec/example_group.rbs +0 -21
  82. data/sig/datadog/ci/contrib/rspec/ext.rbs +0 -17
  83. data/sig/datadog/ci/contrib/rspec/integration.rbs +0 -26
  84. data/sig/datadog/ci/contrib/rspec/patcher.rbs +0 -15
  85. data/sig/datadog/ci/contrib/rspec/runner.rbs +0 -21
  86. data/sig/datadog/ci/contrib/settings.rbs +0 -25
  87. data/sig/datadog/ci/ext/app_types.rbs +0 -14
  88. data/sig/datadog/ci/ext/environment/extractor.rbs +0 -25
  89. data/sig/datadog/ci/ext/environment/providers/appveyor.rbs +0 -48
  90. data/sig/datadog/ci/ext/environment/providers/aws_code_pipeline.rbs +0 -19
  91. data/sig/datadog/ci/ext/environment/providers/azure.rbs +0 -56
  92. data/sig/datadog/ci/ext/environment/providers/base.rbs +0 -71
  93. data/sig/datadog/ci/ext/environment/providers/bitbucket.rbs +0 -37
  94. data/sig/datadog/ci/ext/environment/providers/bitrise.rbs +0 -41
  95. data/sig/datadog/ci/ext/environment/providers/buddy.rbs +0 -37
  96. data/sig/datadog/ci/ext/environment/providers/buildkite.rbs +0 -45
  97. data/sig/datadog/ci/ext/environment/providers/circleci.rbs +0 -41
  98. data/sig/datadog/ci/ext/environment/providers/codefresh.rbs +0 -25
  99. data/sig/datadog/ci/ext/environment/providers/github_actions.rbs +0 -42
  100. data/sig/datadog/ci/ext/environment/providers/gitlab.rbs +0 -57
  101. data/sig/datadog/ci/ext/environment/providers/jenkins.rbs +0 -35
  102. data/sig/datadog/ci/ext/environment/providers/local_git.rbs +0 -66
  103. data/sig/datadog/ci/ext/environment/providers/teamcity.rbs +0 -17
  104. data/sig/datadog/ci/ext/environment/providers/travis.rbs +0 -35
  105. data/sig/datadog/ci/ext/environment/providers/user_defined_tags.rbs +0 -33
  106. data/sig/datadog/ci/ext/environment/providers.rbs +0 -13
  107. data/sig/datadog/ci/ext/environment.rbs +0 -44
  108. data/sig/datadog/ci/ext/git.rbs +0 -53
  109. data/sig/datadog/ci/ext/settings.rbs +0 -14
  110. data/sig/datadog/ci/ext/test.rbs +0 -60
  111. data/sig/datadog/ci/ext/transport.rbs +0 -29
  112. data/sig/datadog/ci/null_span.rbs +0 -37
  113. data/sig/datadog/ci/span.rbs +0 -47
  114. data/sig/datadog/ci/test.rbs +0 -12
  115. data/sig/datadog/ci/test_module.rbs +0 -6
  116. data/sig/datadog/ci/test_session.rbs +0 -9
  117. data/sig/datadog/ci/test_suite.rbs +0 -6
  118. data/sig/datadog/ci/test_visibility/context/global.rbs +0 -39
  119. data/sig/datadog/ci/test_visibility/context/local.rbs +0 -23
  120. data/sig/datadog/ci/test_visibility/flush.rbs +0 -17
  121. data/sig/datadog/ci/test_visibility/null_recorder.rbs +0 -45
  122. data/sig/datadog/ci/test_visibility/recorder.rbs +0 -85
  123. data/sig/datadog/ci/test_visibility/serializers/base.rbs +0 -94
  124. data/sig/datadog/ci/test_visibility/serializers/factories/test_level.rbs +0 -13
  125. data/sig/datadog/ci/test_visibility/serializers/factories/test_suite_level.rbs +0 -13
  126. data/sig/datadog/ci/test_visibility/serializers/span.rbs +0 -18
  127. data/sig/datadog/ci/test_visibility/serializers/test_module.rbs +0 -26
  128. data/sig/datadog/ci/test_visibility/serializers/test_session.rbs +0 -26
  129. data/sig/datadog/ci/test_visibility/serializers/test_suite.rbs +0 -26
  130. data/sig/datadog/ci/test_visibility/serializers/test_v1.rbs +0 -23
  131. data/sig/datadog/ci/test_visibility/serializers/test_v2.rbs +0 -25
  132. data/sig/datadog/ci/test_visibility/transport.rbs +0 -35
  133. data/sig/datadog/ci/transport/api/base.rbs +0 -21
  134. data/sig/datadog/ci/transport/api/builder.rbs +0 -12
  135. data/sig/datadog/ci/transport/api/ci_test_cycle.rbs +0 -21
  136. data/sig/datadog/ci/transport/api/evp_proxy.rbs +0 -19
  137. data/sig/datadog/ci/transport/gzip.rbs +0 -9
  138. data/sig/datadog/ci/transport/http.rbs +0 -36
  139. data/sig/datadog/ci/utils/git.rbs +0 -11
  140. data/sig/datadog/ci/utils/test_run.rbs +0 -11
  141. data/sig/datadog/ci/utils/url.rbs +0 -9
  142. data/sig/datadog/ci/version.rbs +0 -16
  143. data/sig/datadog/ci.rbs +0 -37
@@ -1,56 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Azure < Base
7
- @pipeline_url: String
8
- @job_url: String
9
-
10
- def provider_name: () -> "azurepipelines"
11
-
12
- def pipeline_url: () -> String?
13
-
14
- def job_url: () -> String?
15
-
16
- def workspace_path: () -> String?
17
-
18
- def pipeline_id: () -> String?
19
-
20
- def pipeline_number: () -> String?
21
-
22
- def pipeline_name: () -> String?
23
-
24
- def stage_name: () -> String?
25
-
26
- def job_name: () -> String?
27
-
28
- def git_repository_url: () -> String?
29
-
30
- def git_commit_sha: () -> String?
31
-
32
- def git_branch_or_tag: () -> String?
33
-
34
- def git_commit_author_name: () -> String?
35
-
36
- def git_commit_author_email: () -> String?
37
-
38
- def git_commit_message: () -> String?
39
-
40
- def ci_env_vars: () -> String?
41
-
42
- private
43
-
44
- def build_id: () -> String?
45
-
46
- def team_foundation_server_uri: () -> String?
47
-
48
- def team_project_id: () -> String?
49
-
50
- def url_defined?: () -> bool
51
- end
52
- end
53
- end
54
- end
55
- end
56
- end
@@ -1,71 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Base
7
- attr_reader env: Hash[String, String?]
8
- @branch: String?
9
- @tag: String?
10
-
11
- def self.handles?: (Hash[String, String?] env) -> bool
12
-
13
- def initialize: (Hash[String, String?] env) -> void
14
-
15
- def job_name: () -> nil
16
-
17
- def job_url: () -> nil
18
-
19
- def pipeline_id: () -> nil
20
-
21
- def pipeline_name: () -> nil
22
-
23
- def pipeline_number: () -> nil
24
-
25
- def pipeline_url: () -> nil
26
-
27
- def provider_name: () -> nil
28
-
29
- def stage_name: () -> nil
30
-
31
- def workspace_path: () -> nil
32
-
33
- def node_labels: () -> nil
34
-
35
- def node_name: () -> nil
36
-
37
- def ci_env_vars: () -> nil
38
-
39
- def git_branch: () -> String?
40
-
41
- def git_repository_url: () -> nil
42
-
43
- def git_tag: () -> String?
44
-
45
- def git_branch_or_tag: () -> nil
46
-
47
- def git_commit_author_date: () -> nil
48
-
49
- def git_commit_author_email: () -> nil
50
-
51
- def git_commit_author_name: () -> nil
52
-
53
- def git_commit_committer_date: () -> nil
54
-
55
- def git_commit_committer_email: () -> nil
56
-
57
- def git_commit_committer_name: () -> nil
58
-
59
- def git_commit_message: () -> nil
60
-
61
- def git_commit_sha: () -> nil
62
-
63
- private
64
-
65
- def set_branch_and_tag: () -> [String?, String?]
66
- end
67
- end
68
- end
69
- end
70
- end
71
- end
@@ -1,37 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Bitbucket < Base
7
- def provider_name: () -> "bitbucket"
8
-
9
- def pipeline_id: () -> String?
10
-
11
- def pipeline_name: () -> String?
12
-
13
- def pipeline_number: () -> String?
14
-
15
- def pipeline_url: () -> String?
16
-
17
- def job_url: () -> String?
18
-
19
- def workspace_path: () -> String?
20
-
21
- def git_repository_url: () -> String?
22
-
23
- def git_commit_sha: () -> String?
24
-
25
- def git_branch: () -> String?
26
-
27
- def git_tag: () -> String?
28
-
29
- private
30
-
31
- def url: () -> ::String?
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,41 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Bitrise < Base
7
- def provider_name: () -> "bitrise"
8
-
9
- def pipeline_id: () -> String?
10
-
11
- def pipeline_name: () -> String?
12
-
13
- def pipeline_number: () -> String?
14
-
15
- def pipeline_url: () -> String?
16
-
17
- def workspace_path: () -> String?
18
-
19
- def git_repository_url: () -> String?
20
-
21
- def git_commit_sha: () -> String?
22
-
23
- def git_branch: () -> String?
24
-
25
- def git_tag: () -> String?
26
-
27
- def git_commit_message: () -> String?
28
-
29
- def git_commit_author_name: () -> String?
30
-
31
- def git_commit_author_email: () -> String?
32
-
33
- def git_commit_committer_name: () -> String?
34
-
35
- def git_commit_committer_email: () -> String?
36
- end
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1,37 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Buddy < Extractor
7
- def provider_name: () -> "buddy"
8
-
9
- def pipeline_id: () -> ::String
10
-
11
- def pipeline_name: () -> String?
12
-
13
- def pipeline_number: () -> String?
14
-
15
- def pipeline_url: () -> String?
16
-
17
- def workspace_path: () -> String?
18
-
19
- def git_repository_url: () -> String?
20
-
21
- def git_commit_sha: () -> String?
22
-
23
- def git_branch: () -> String?
24
-
25
- def git_tag: () -> String?
26
-
27
- def git_commit_message: () -> String?
28
-
29
- def git_commit_committer_name: () -> String?
30
-
31
- def git_commit_committer_email: () -> String?
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,45 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Buildkite < Extractor
7
- def provider_name: () -> "buildkite"
8
-
9
- def job_url: () -> ::String
10
-
11
- def pipeline_id: () -> String?
12
-
13
- def pipeline_name: () -> String?
14
-
15
- def pipeline_number: () -> String?
16
-
17
- def pipeline_url: () -> String?
18
-
19
- def node_name: () -> String?
20
-
21
- def node_labels: () -> String?
22
-
23
- def workspace_path: () -> String?
24
-
25
- def git_repository_url: () -> String?
26
-
27
- def git_commit_sha: () -> String?
28
-
29
- def git_branch: () -> String?
30
-
31
- def git_tag: () -> String?
32
-
33
- def git_commit_author_name: () -> String?
34
-
35
- def git_commit_author_email: () -> String?
36
-
37
- def git_commit_message: () -> String?
38
-
39
- def ci_env_vars: () -> String?
40
- end
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,41 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Circleci < Extractor
7
- def provider_name: () -> "circleci"
8
-
9
- def job_url: () -> String?
10
-
11
- def job_name: () -> String?
12
-
13
- def pipeline_id: () -> String?
14
-
15
- def pipeline_name: () -> String?
16
-
17
- def pipeline_url: () -> ::String
18
-
19
- def workspace_path: () -> String?
20
-
21
- def git_repository_url: () -> String?
22
-
23
- def git_commit_sha: () -> String?
24
-
25
- def git_branch: () -> String?
26
-
27
- def git_tag: () -> String?
28
-
29
- def git_commit_author_name: () -> String?
30
-
31
- def git_commit_author_email: () -> String?
32
-
33
- def git_commit_message: () -> String?
34
-
35
- def ci_env_vars: () -> ::String
36
- end
37
- end
38
- end
39
- end
40
- end
41
- end
@@ -1,25 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Codefresh < Extractor
7
- def provider_name: () -> "codefresh"
8
-
9
- def job_name: () -> String?
10
-
11
- def pipeline_id: () -> String?
12
-
13
- def pipeline_name: () -> String?
14
-
15
- def pipeline_url: () -> String?
16
-
17
- def git_branch_or_tag: () -> String?
18
-
19
- def ci_env_vars: () -> String
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,42 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class GithubActions < Extractor
7
- @ref: String
8
- @github_server_url: String?
9
-
10
- def provider_name: () -> "github"
11
-
12
- def job_name: () -> String?
13
-
14
- def job_url: () -> ::String
15
-
16
- def pipeline_id: () -> String?
17
-
18
- def pipeline_name: () -> String?
19
-
20
- def pipeline_number: () -> String?
21
-
22
- def pipeline_url: () -> String?
23
-
24
- def workspace_path: () -> String?
25
-
26
- def git_repository_url: () -> ::String
27
-
28
- def git_commit_sha: () -> String?
29
-
30
- def git_branch_or_tag: () -> String?
31
-
32
- def ci_env_vars: () -> String?
33
-
34
- private
35
-
36
- def github_server_url: () -> String?
37
- end
38
- end
39
- end
40
- end
41
- end
42
- end
@@ -1,57 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Gitlab < Extractor
7
- @name_email_tuple: [String?, String?]
8
-
9
- def provider_name: () -> "gitlab"
10
-
11
- def job_name: () -> String?
12
-
13
- def job_url: () -> String?
14
-
15
- def pipeline_id: () -> String?
16
-
17
- def pipeline_name: () -> String?
18
-
19
- def pipeline_number: () -> String?
20
-
21
- def pipeline_url: () -> String?
22
-
23
- def stage_name: () -> String?
24
-
25
- def workspace_path: () -> String?
26
-
27
- def node_name: () -> String?
28
-
29
- def node_labels: () -> String?
30
-
31
- def git_repository_url: () -> String?
32
-
33
- def git_commit_sha: () -> String?
34
-
35
- def git_branch: () -> String?
36
-
37
- def git_tag: () -> String?
38
-
39
- def git_commit_author_name: () -> String?
40
-
41
- def git_commit_author_email: () -> String?
42
-
43
- def git_commit_author_date: () -> String?
44
-
45
- def git_commit_message: () -> String?
46
-
47
- def ci_env_vars: () -> String?
48
-
49
- private
50
-
51
- def extract_name_email: () -> [String?, String?]
52
- end
53
- end
54
- end
55
- end
56
- end
57
- end
@@ -1,35 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Jenkins < Base
7
- def provider_name: () -> "jenkins"
8
-
9
- def pipeline_id: () -> String?
10
-
11
- def pipeline_name: () -> String?
12
-
13
- def pipeline_number: () -> String?
14
-
15
- def pipeline_url: () -> String?
16
-
17
- def workspace_path: () -> String?
18
-
19
- def node_name: () -> String?
20
-
21
- def node_labels: () -> String?
22
-
23
- def git_repository_url: () -> String?
24
-
25
- def git_commit_sha: () -> String?
26
-
27
- def git_branch_or_tag: () -> String?
28
-
29
- def ci_env_vars: () -> String?
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
@@ -1,66 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class LocalGit < Base
7
- class GitUser
8
- attr_reader name: String?
9
- attr_reader email: String?
10
- attr_reader timestamp: String?
11
-
12
- @name: String?
13
- @email: String?
14
- @timestamp: String?
15
-
16
- def initialize: (String? name, String? email, String? timestamp) -> void
17
-
18
- def date: () -> String?
19
- end
20
-
21
- class NilUser < GitUser
22
- def initialize: () -> void
23
- end
24
-
25
- private
26
-
27
- @author: GitUser
28
- @committer: GitUser
29
-
30
- def git_repository_url: () -> String?
31
-
32
- def git_commit_sha: () -> String?
33
-
34
- def git_branch: () -> String?
35
-
36
- def git_tag: () -> String?
37
-
38
- def git_commit_message: () -> String?
39
-
40
- def git_commit_author_name: () -> String?
41
-
42
- def git_commit_author_email: () -> String?
43
-
44
- def git_commit_author_date: () -> String?
45
-
46
- def git_commit_committer_name: () -> String?
47
-
48
- def git_commit_committer_email: () -> String?
49
-
50
- def git_commit_committer_date: () -> String?
51
-
52
- def workspace_path: () -> String?
53
-
54
- def exec_git_command: (String cmd) -> String?
55
-
56
- def author: () -> GitUser
57
-
58
- def committer: () -> GitUser
59
-
60
- def set_git_commit_users: () -> void
61
- end
62
- end
63
- end
64
- end
65
- end
66
- end
@@ -1,17 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Teamcity < Extractor
7
- def provider_name: () -> "teamcity"
8
-
9
- def job_name: () -> String?
10
-
11
- def job_url: () -> String?
12
- end
13
- end
14
- end
15
- end
16
- end
17
- end
@@ -1,35 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class Travis < Extractor
7
- def provider_name: () -> "travisci"
8
-
9
- def job_url: () -> String?
10
-
11
- def pipeline_id: () -> String?
12
-
13
- def pipeline_name: () -> String?
14
-
15
- def pipeline_number: () -> String?
16
-
17
- def pipeline_url: () -> String?
18
-
19
- def workspace_path: () -> String?
20
-
21
- def git_repository_url: () -> ::String
22
-
23
- def git_commit_sha: () -> String?
24
-
25
- def git_branch: () -> String?
26
-
27
- def git_tag: () -> String?
28
-
29
- def git_commit_message: () -> String?
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
@@ -1,33 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- class UserDefinedTags < Base
7
- def git_repository_url: () -> String?
8
-
9
- def git_commit_sha: () -> String?
10
-
11
- def git_branch: () -> String?
12
-
13
- def git_tag: () -> String?
14
-
15
- def git_commit_message: () -> String?
16
-
17
- def git_commit_author_name: () -> String?
18
-
19
- def git_commit_author_email: () -> String?
20
-
21
- def git_commit_author_date: () -> String?
22
-
23
- def git_commit_committer_name: () -> String?
24
-
25
- def git_commit_committer_email: () -> String?
26
-
27
- def git_commit_committer_date: () -> String?
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,13 +0,0 @@
1
- module Datadog
2
- module CI
3
- module Ext
4
- module Environment
5
- module Providers
6
- PROVIDERS: ::Array[untyped]
7
-
8
- def self.for_environment: (Hash[String, String?] env) -> Providers::Base
9
- end
10
- end
11
- end
12
- end
13
- end