Trim Builds Buildkite Plugin
A Buildkite plugin to trim old builds from the file system to free up disk space. Use with caution.
Example
Add the following to your pipeline.yml
:
steps:
- command: ls
plugins:
- samsarahq/trim-builds#v0.1.0:
minimum: 10485760
Configuration
minimum
(Optional, number)
The minimum amount of disk space that must be free before the plugin attempts to delete old builds.
Default is 10485760
(10 GB).
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
License
MIT (see LICENSE)