Skip to content

envato/git-checkout-flags-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Checkout Flags Buildkite Plugin

A minimal Buildkite plugin that allows you to control git clone, fetch, and clean flags during checkout.

Example

Using a preset:

steps:
  - command: make test
    plugins:
      - envato/git-checkout-flags#v1.1.0:
          preset: shallow

Using custom flags:

steps:
  - command: make test
    plugins:
      - envato/git-checkout-flags#v1.1.0:
          clone: "<clone-flags>"
          fetch: "<fetch-flags>"

Configuration

preset (optional, string)

Use a predefined set of flags. Available presets:

  • shallow: Optimized for fast, shallow clones with minimal history
  • unshallow: Detects shallow repositories (from a previous job) and fetches full history

Explicit clone, fetch, or clean options will override preset values.

clone (optional, string)

Flags to pass to git clone. Sets BUILDKITE_GIT_CLONE_FLAGS.

fetch (optional, string)

Flags to pass to git fetch. Sets BUILDKITE_GIT_FETCH_FLAGS.

clean (optional, string)

Flags to pass to git clean. Sets BUILDKITE_GIT_CLEAN_FLAGS.

Developing

To run the tests:

make test

To run linting:

make lint

License

MIT (see LICENSE)

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published