Skip to content

Commit

Permalink
Remove unnecessary lib path code
Browse files Browse the repository at this point in the history
.buildkite/lib is automatically added to the load path

Prior to the change to diff, we needed this to allow executing the pipeline from different PWD
  • Loading branch information
zzak committed Feb 19, 2024
1 parent fe3f2f1 commit 3126abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions pipelines/rails-ci-nightly/pipeline.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# frozen_string_literal: true

BUILDKITE_ROOT_DIR = if ENV["CI"]
Buildkite::Builder.root.join(".buildkite")
else
Buildkite::Builder.root
end

$LOAD_PATH.unshift(BUILDKITE_ROOT_DIR.join("lib").to_s)

require "buildkite_config"

Buildkite::Builder.pipeline do
require "buildkite_config"
use Buildkite::Config::BuildContext
use Buildkite::Config::DockerBuild
use Buildkite::Config::RakeCommand
Expand Down
11 changes: 1 addition & 10 deletions pipelines/rails-ci/pipeline.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# frozen_string_literal: true

BUILDKITE_ROOT_DIR = if ENV["CI"]
Buildkite::Builder.root.join(".buildkite")
else
Buildkite::Builder.root
end

$LOAD_PATH.unshift(BUILDKITE_ROOT_DIR.join("lib").to_s)

require "buildkite_config"

Buildkite::Builder.pipeline do
require "buildkite_config"
use Buildkite::Config::BuildContext
use Buildkite::Config::DockerBuild
use Buildkite::Config::RakeCommand
Expand Down

0 comments on commit 3126abe

Please sign in to comment.