Built-in git checkout may cover this use case
Buildkite now supports checkout customization directly in pipeline YAML, including skip checkout, shallow clones, sparse checkout, custom Git flags, SSH checkout secrets, and commit verification. For most checkout use cases, try the built-in configuration before adding this plugin. View git checkout configuration .
Sparse Checkout Buildkite Plugin
Sparse checkouts a directory from Github. Based on https://buildkite.com/docs/plugins/writing
Example
Add the following to your pipeline.yml:
steps:
- command: echo sparse-checkout
plugins:
- pragmaplatform/sparse-checkout#v1.1.9:
paths: "dir1 dir2"
Configuration
paths (Required, list)
List of directory paths to sparse checkout.
Developing
To run the tests:
docker-compose run --rm tests
Contributing
- Fork the repo
- Make the changes
- Run the tests
- Commit and push your changes
- Send a pull request