class KnapsackPro::Config::CI::Semaphore
Semaphore
Classic is deprecated semaphoreci.com/blog/semaphore-classic-deprecation
Public Instance Methods
branch()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 26 def branch ENV['BRANCH_NAME'] end
ci_provider()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 42 def ci_provider "Semaphore CI 1.0" end
commit_hash()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 22 def commit_hash ENV['REVISION'] end
detected()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 34 def detected ENV.key?('SEMAPHORE_BUILD_NUMBER') ? self.class : nil end
fixed_queue_split()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 38 def fixed_queue_split false end
node_build_id()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 18 def node_build_id ENV['SEMAPHORE_BUILD_NUMBER'] end
node_index()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 13 def node_index index = ENV['SEMAPHORE_CURRENT_THREAD'] index.to_i - 1 if index end
node_total()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 9 def node_total ENV['SEMAPHORE_THREAD_COUNT'] end
project_dir()
click to toggle source
# File lib/knapsack_pro/config/ci/semaphore.rb, line 30 def project_dir ENV['SEMAPHORE_PROJECT_DIR'] end