A Buildkite plugin for creating a sparse checkout of a repository.
This is useful for pipeline upload steps that dont need to access files outside the .buildkite directory. If your repository is large, this plugin will speed up your pipelines by only pulling the files relevant to the step.
These are all the options available to configure this plugin's behaviour.
Paths accepted by git sparse-checkout set
.
Whether to pass --no-cone
to git sparse-checkout
so that the paths are considered to be a list of patterns.
Below is an example for using sparse-checkout plugin.
steps:
- label: "Pipeline upload"
command: "buildkite-agent pipeline upload"
plugins:
- sparse-checkout#v1.0.0:
paths:
- .buildkite
To run testing, shellchecks and plugin linting use bk run
with the Buildkite CLI.
bk run
Your policy on how to contribute to the plugin!
The package is available as open source under the terms of the MIT License.