Class: KnapsackPro::Config::CI::Base
- Inherits:
-
Object
- Object
- KnapsackPro::Config::CI::Base
show all
- Defined in:
- lib/knapsack_pro/config/ci/base.rb
Direct Known Subclasses
AppVeyor, Buildkite, Circle, CirrusCI, Codefresh, Codeship, GithubActions, GitlabCI, Heroku, Semaphore, Semaphore2, Travis
Instance Method Summary
collapse
Instance Method Details
#branch ⇒ Object
22
23
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 22
def branch
end
|
#ci_provider ⇒ Object
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 38
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
|
#commit_hash ⇒ Object
19
20
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 19
def commit_hash
end
|
#detected ⇒ Object
31
32
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 31
def detected
end
|
#fixed_queue_split ⇒ Object
34
35
36
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 34
def fixed_queue_split
true
end
|
#node_build_id ⇒ Object
13
14
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 13
def node_build_id
end
|
#node_index ⇒ Object
10
11
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 10
def node_index
end
|
#node_retry_count ⇒ Object
16
17
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 16
def node_retry_count
end
|
#node_total ⇒ Object
7
8
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 7
def node_total
end
|
#project_dir ⇒ Object
25
26
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 25
def project_dir
end
|
#user_seat ⇒ Object
28
29
|
# File 'lib/knapsack_pro/config/ci/base.rb', line 28
def user_seat
end
|