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 flags Buildkite Plugin
Sets the Buildkite git flags for the current build.
Example
Add the following to your pipeline.yml:
steps:
- command: ls
plugins:
- Hivebrite/git-flags#v0.0.1:
clone: "--all"
fetch: "--all"
Configuration
clone (Optional, string)
Git clone flags, for example --all. Supports any pattern supported by git clone.
fetch (Optional, string)
Git fetch flags, for example --all. Supports any pattern supported by git fetch.
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