Create Git plugin configurations

4 minute readExtensibilityDeveloper productivity

Plugin configurations are sets of parameters that can be applied across some, or all, plugin procedures. They can reduce the repetition of common values, create predefined parameter sets, and securely store credentials. Each configuration is given a unique name that is entered in the designated parameter for the plugin procedures that use them. The following steps illustrate how to create a plugin configuration that can be used by one or more plugin procedures.

To create a plugin configuration:

  1. Navigate to DevOps Essentials  Plugin Management  Plugin configurations.

  2. Select Add plugin configuration to create a new configuration.

  3. In the New Configuration window, specify a Name for the configuration.

  4. Select the Project that the configuration belongs to.

  5. Optionally, add a Description for the configuration.

  6. Select the appropriate Plugin for the configuration.

  7. Configure the plugin configuration parameters.

  8. Select OK.

Depending on your plugin configuration and how you run procedures, the Input parameters  Configuration name field may behave differently in the Cloudbees CD/RO UI. For more information, refer to Differences in plugin UI behavior.

Git plugin configuration parameters

Table 1. EC-Git plugin configuration parameters
Parameter Description

Configuration name

Required. The unique name for the configuration.

Description

A description of the configuration.

Authentication types

SCM-specific authentication types.

  • For GitHub users, either:

    • Select key, and provide your SSH key in the Private Key field.

    • Select token, and provide your secret key in the Token field.

  • For GitLab users, either:

    • Select key, and provide your SSH key in the Private Key field.

    • Select password, and either:

      • Provide your Username and Password.

      • Provide your Username and PAT as the Password.

      • Provide oauth2 as the Username and PAT as the Password.

  • For Bitbucket users, either:

    • Select key, and provide your SSH key in the Private Key field.

    • Select password, and either:

      • Provide your Username and Password.

      • Provide your Username and PAT as the Password.

If your account uses two-factor authentication, please consult the documentation of your third-party Git provider regarding the use of passwords.

Username and password

The username and password.

Consult your third-party Git provider for the security details on password usage in checkout calls.

Token

The personal access token that has proper access scope.

Key

The private key that allows access to Git repositories.

  • The JGit library does not support keys in OpenSSH format. You should use the Git CLI or regenerate the key to a Privacy Enhanced Mail (PEM) format.

  • This parameter can only be used with Git or SSH protocols, and is not applicable to the HTTP(S) protocol.

Passphrase

The passphrase that is used to encrypt the protected key.

GitHub Apps

A JWT is generated using a private key (in PEM format) and the GitHub App Client ID.

Client ID from GitHub App

Client ID for updating the JWT with issuer.

Installation ID associated with GitHub App

Installation ID associated with GitHub App, which is used for generating installation access token for accessing github resources.

Library to use

You can select Git CLI or JGit lib to work with the Git tree. Some commands are not available in the JGit library, but are independent of resources. If you are using the Git CLI, it must be installed on the resource.

Repository URL for check configuration

The plugin checks if the repository is accessible before saving the configuration values.

Ignore SSL errors

Turns off SSL verification for instances with self-signed certificates. Ignored (forced off) when mTLS is enabled; with mTLS, provide the CA bundle in the mTLS CA Certificate Bundle field instead.

Check configuration resource

A resource that is used to check the configuration. If you are using the Git CLI, it must be installed on the resource.

Enable mTLS

Enable mutual TLS (mTLS) authentication. Check this if the Git server is behind a gateway that requires client certificate verification. Applies to HTTPS repository URLs only, for both the JGit library and the Git CLI. When mTLS is enabled, Ignore SSL errors is forced off, and Git CLI runs are refused if the agent sets GIT_SSL_NO_VERIFY, if any http.sslVerify=false or http.<url>.sslVerify=false is visible to git on the agent (system, global, repository or submodule configuration, for any host), or if http.sslBackend=schannel is set (Git for Windows; use openssl). Plain HTTP is refused for both libraries, including redirects from HTTPS to http://; Git CLI runs are limited to the https, ssh and git protocols (local paths and file:// are not allowed).

mTLS Client Certificate (PEM)

Client certificate in PEM format for mTLS authentication.

mTLS Client Private Key (PEM)

Client private key in PEM format corresponding to the mTLS client certificate.

mTLS CA Certificate Bundle (PEM)

(Optional) CA certificate bundle in PEM format for verifying the server during mTLS handshake. Leave blank to use the system default CA bundle. If the server uses a private or self-signed CA, provide the CA bundle here instead of enabling Ignore SSL errors, which would weaken mTLS security. With the JGit library the bundle is added to the Java default trusted CAs. With the Git CLI, git is given the Java default trusted CAs plus this bundle in place of its own CA bundle (and any http.sslCAInfo), so hosts trusted only through the operating system certificate store are not trusted by Git CLI runs while a bundle is set.

HTTP proxy

A proxy server URL that should be used for connections.

Proxy authorization

The username and password for the proxy.

Debug level

This option sets the debug level for logs. If Info is selected, only a summary is displayed. If Debug is selected, debug information is displayed. If Trace is selected, all requests and responses are displayed.