Sha256: 29c3ce508c0c64a576b88343c9659b93b973f7d73a43d9e7e8b5e54d1b2ac5a5

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
knapsack_pro-5.5.0 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-5.4.1 lib/knapsack_pro/config/ci/base.rb
knapsack_pro-5.4.0 lib/knapsack_pro/config/ci/base.rb