Specific paths for pipelines
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!
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
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.