Class: KnapsackPro::Config::CI::Buildkite
- Defined in:
- lib/knapsack_pro/config/ci/buildkite.rb
Instance Method Summary collapse
- #branch ⇒ Object
- #ci_provider ⇒ Object
- #commit_hash ⇒ Object
- #detected ⇒ Object
- #fixed_queue_split ⇒ Object
- #node_build_id ⇒ Object
- #node_index ⇒ Object
- #node_retry_count ⇒ Object
- #node_total ⇒ Object
- #project_dir ⇒ Object
- #user_seat ⇒ Object
Instance Method Details
#branch ⇒ Object
27 28 29 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 27 def branch ENV['BUILDKITE_BRANCH'] end |
#ci_provider ⇒ Object
47 48 49 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 47 def ci_provider "Buildkite" end |
#commit_hash ⇒ Object
23 24 25 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 23 def commit_hash ENV['BUILDKITE_COMMIT'] end |
#detected ⇒ Object
39 40 41 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 39 def detected ENV.key?('BUILDKITE') ? self.class : nil end |
#fixed_queue_split ⇒ Object
43 44 45 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 43 def fixed_queue_split true end |
#node_build_id ⇒ Object
15 16 17 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 15 def node_build_id ENV['BUILDKITE_BUILD_NUMBER'] end |
#node_index ⇒ Object
11 12 13 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 11 def node_index ENV['BUILDKITE_PARALLEL_JOB'] end |
#node_retry_count ⇒ Object
19 20 21 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 19 def node_retry_count ENV['BUILDKITE_RETRY_COUNT'] end |
#node_total ⇒ Object
7 8 9 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 7 def node_total ENV['BUILDKITE_PARALLEL_JOB_COUNT'] end |
#project_dir ⇒ Object
31 32 33 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 31 def project_dir ENV['BUILDKITE_BUILD_CHECKOUT_PATH'] end |
#user_seat ⇒ Object
35 36 37 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 35 def user_seat ENV['BUILDKITE_BUILD_AUTHOR'] || ENV['BUILDKITE_BUILD_CREATOR'] end |