lib/knapsack_pro/config/env.rb in knapsack_pro-1.12.0 vs lib/knapsack_pro/config/env.rb in knapsack_pro-1.12.1

- old
+ new

@@ -175,10 +175,12 @@ end end def ci_env_for(env_name) value = nil - ci_list = KnapsackPro::Config::CI.constants - [:Base] + ci_list = KnapsackPro::Config::CI.constants - [:Base, :GitlabCI] + # load GitLab CI first to avoid edge case with order of loading envs for CI_NODE_INDEX + ci_list = [:GitlabCI] + ci_list ci_list.each do |ci_name| ci_class = Object.const_get("KnapsackPro::Config::CI::#{ci_name}") ci = ci_class.new value = ci.send(env_name) break unless value.nil?