Git plugin

2 minute readExtensibilityDeveloper productivity
On this page

Git is a distributed version control system with an emphasis on speed. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, and is not dependent on network access or a central server. Git is free software distributed under the terms of the GNU General Public License version 2. The Git plugin provides the core functionality for managing Git repositories and associated data, which can be deployed anywhere. The Git plugin allows you to connect the Git source control server to CloudBees CD/RO and enables you to perform:

  • Code checkouts

  • Preflight builds

  • Continuous integration (CI)

The Git plugin provides the following core functionality for managing Git repositories and associated data, which can be deployed anywhere:

Supported features Git plugin

Reporting data: Code commit

The Bitbucket plugin, GitHub plugin, and GitLab plugin can also be used to integrate with GitHub, Bitbucket, and GitLab source code management (SCM) tools to provide additional functionality, such as configuring webhook triggers.

The ECSCM-Git plugin has been deprecated and is no longer supported. It has been replaced by the EC-Git, EC-Bitbucket, EC-GitHub, and GitLab plugins.

Prerequisites

The Git plugin has two different options for performing Git repository operations:

  • JGit Java library: The Java library is used to operate the Git tree. The Git CLI is not required on the agent machine. It has been tested using version 5.7.0.202003110725-r.

    The Java library does not support certain operations, like a shallow clone with the depth specified or OpenSSH private keys. For more information, refer to Known issues: JGit Library.
  • Git command line interface (CLI) client: The Git CLI utility is used to operate the Git tree. The Git CLI must be installed on the agent machine for the plugin to work with the Git CLI client. It has been tested on version 2.25.1.