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 .
Git Shallow Clone Buildkite Plugin
Sets --depth flag for git-clone and git-fetch commands.
Example
Add the following to your pipeline.yml:
steps:
- command: buildkite-agent pipeline upload
plugins:
- peakon/git-shallow-clone#v0.0.1:
depth: 1
Configuration
depth (Optional, number)
Shallow clone --depth (default = 1).
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