The git plugin is used to clone a git repository. Note that Drone uses the git plugin by default for all repositories, without any configuration required.

Example

kind: pipeline
name: default

steps:
- name: clone
  image: plugins/git
  settings:
    depth: 50

Properties

  • depth

    numberoptional

    creates a shallow clone with truncated history.

    Default: none

  • recursive

    booleanoptional

    clones submodules recursively.

    Default: false

  • skip_verify

    booleanoptional

    skips the SSL verification.

    Default: false

  • tags

    booleanoptional

    fetches tags when set to true.

    Default: false

  • submodule_overrides

    objectoptional

    override submodule urls.

    Default: none

  • submodule_update_remote

    booleanoptional

    pass the --remote flag to git submodule update.

    Default: false