-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a39ffe
commit 67ca5fc
Showing
4 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "../extractor" | ||
|
||
module Datadog | ||
module CI | ||
module Ext | ||
module Environment | ||
module Providers | ||
# Teamcity: https://www.jetbrains.com/teamcity/ | ||
# Environment variables docs: https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html | ||
class Teamcity < Extractor | ||
private | ||
|
||
# overridden methods | ||
def provider_name | ||
"teamcity" | ||
end | ||
|
||
def job_name | ||
env["TEAMCITY_BUILDCONF_NAME"] | ||
end | ||
|
||
def job_url | ||
env["BUILD_URL"] | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Datadog | ||
module CI | ||
module Ext | ||
module Environment | ||
module Providers | ||
class Teamcity < Extractor | ||
private | ||
def provider_name: () -> "teamcity" | ||
|
||
def job_name: () -> String? | ||
|
||
def job_url: () -> String? | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |