lib/datadog/ci/ext/environment/providers/bitbucket.rb in datadog-ci-0.2.0 vs lib/datadog/ci/ext/environment/providers/bitbucket.rb in datadog-ci-0.3.0
- old
+ new
@@ -8,9 +8,13 @@
module Environment
module Providers
# Bitbucket Pipelines: https://bitbucket.org/product/features/pipelines
# Environment variables docs: https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/
class Bitbucket < Base
+ def self.handles?(env)
+ env.key?("BITBUCKET_COMMIT")
+ end
+
# overridden methods
def provider_name
"bitbucket"
end