Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.11 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.11 KB

Git Clean Buildkite Plugin Build status

A Buildkite plugin for customizing the git clean flags. Helpful if you want to exlude directories from being removed between job runs on the same agent and pipeline.

See the git clean documentation for detailed information about all the flags available, and the git-clean-flags buildkite-agent configuration option.

Example

The following will clean all files between running the job (including those in .gitignore), except for the node_modules directory:

steps:
  - commands:
    - npm install
    - npm test
    plugins:
      - git-clean#v1.0.0:
          flags: "-fdqx --exclude=node_modules"

Configuration

flags (required)

The command line arguments to pass to git clean.

Example: "-fdqx --exclude=node_modules"

License

MIT (see LICENSE)