Sha256: d1e0652c68becd267d638f9b699f42644e4310ee8e4eff545408b552abe8619a

Contents?: true

Size: 1.15 KB

Versions: 23

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

module KnapsackPro
  module Config
    module CI
      class Base
        def node_total
        end

        def node_index
        end

        def node_build_id
        end

        def node_retry_count
        end

        def commit_hash
        end

        def branch
        end

        def project_dir
        end

        def user_seat
        end

        def detected
        end

        def fixed_queue_split
          true
        end

        def ci_provider
          return 'AWS CodeBuild' if ENV.key?('CODEBUILD_BUILD_ARN')
          return 'Azure Pipelines' if ENV.key?('SYSTEM_TEAMFOUNDATIONCOLLECTIONURI')
          return 'Bamboo' if ENV.key?('bamboo_planKey')
          return 'Bitbucket Pipelines' if ENV.key?('BITBUCKET_COMMIT')
          return 'Buddy.works' if ENV.key?('BUDDY')
          return 'Drone.io' if ENV.key?('DRONE')
          return 'Google Cloud Build' if ENV.key?('BUILDER_OUTPUT')
          return 'Jenkins' if ENV.key?('JENKINS_URL')
          return 'TeamCity' if ENV.key?('TEAMCITY_VERSION')
          return 'Other' if KnapsackPro::Config::Env.ci?

          nil
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
knapsack_pro-7.13.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.12.1 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.12.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.11.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.10.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.9.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.8.2 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.8.1 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.8.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.7.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.6.2 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.6.1 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.6.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.1.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.0.1 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-7.0.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-6.0.4 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-6.0.3 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-6.0.2 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-6.0.1 lib/knapsack_pro/config/ci/base.rb