Skip to content

buildkite-plugins/git-clean-buildkite-plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)