Git plugin

2 minute readExtensibilityDeveloper productivity

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 Configure webhook triggers.

The ECSCM-Git plugin has been migrated to community and is no longer supported. It has been replaced by the Git, Bitbucket, GitHub, and GitLab plugins. To continue using the community version of ECSCM-Git, visit ECSCM-Git community plugin.

Supported versions

  • The JGit Java library has been tested using version 5.7.0.202003110725-r.

  • The Git command line interface (CLI) client has been tested on version 2.25.1.

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.

    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 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.