buildkite-builder icon indicating copy to clipboard operation
buildkite-builder copied to clipboard

Specific paths for pipelines

Open gmogames opened this issue 4 months ago • 2 comments

Hello,

Are pipeline files strictly required to live under the .buildkite directory, or is there a way to run a pipeline from another path?

In our setup, we keep pipeline files in a separate repository since many of them are shared across repos and platforms. Right now, I haven’t found a way to point to a specific file path — I keep running into this error:

find_buildkite_directory: Unable to find .buildkite from /workdir

I searched through the documentation and specs but wasn’t able to find anything that addressed this directly.

Thanks in advance for any guidance!

gmogames avatar Aug 21 '25 23:08 gmogames

Can you try setting the BUILDKITE_BUILDER_PIPELINE_PATH variable? https://github.com/Gusto/buildkite-builder/blob/1b49cd1589c4905026cfb8894d6ad98a4015b11d/lib/buildkite/builder/commands/abstract.rb#L108-L113

ngan avatar Oct 25 '25 04:10 ngan

I think you can set BUILDKITE_BUILDER_PIPELINE_PATH to /my/custom/path/.buildkite/pipelines/foobar. This directory is expected to contain the pipeline.rb file.

ngan avatar Oct 25 '25 04:10 ngan