NatasG / git-clean-buildkite-plugin

πŸ—‘ Overrides the git clean flags for a job

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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#v0.0.1:
          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)

About

πŸ—‘ Overrides the git clean flags for a job

License:MIT License


Languages

Language:Shell 100.0%