Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Global Config user.name Value: if provided git config user.name <value> is called before builds. This can be overridden by individual projects.
  • Global Config user.email Value: if provided git config user.email <value> is called before builds. This can be overridden by individual projects.
  • Create new accounts base on author/committer's email: if checked, upon parsing of git change logs, new user accounts are created on demand for the identified committers / authors in the internal Jenkins database. The e-mail address is used as the id of the account.
Warning
titlePipeline Scripts

Please note that these config variables are not passed through to Pipeline jobs

Jira
serverJenkins JIRA
serverIddd058dce-0c66-3b77-8b09-71b1d7728747
keyJENKINS-43563
So this configuration will need to be added in the job if you wish to make git commits


Project Configuration

At the project level the Git Plugin is configured by selecting the Git option at the Source Code Management section.

...

  • GIT_COMMIT - SHA of the current
  • GIT_BRANCH - Name of the remote repository (defaults to origin), followed by name of the branch currently being used, e.g. "origin/master" or "origin/foo"
  • GIT_LOCAL_BRANCH - Name of the branch on Jenkins. When the "checkout to specific local branch" behavior is configured, the variable is published.  If the behavior is configured as null or **, the property will contain the resulting local branch name sans the remote name. 
  • GIT_PREVIOUS_COMMIT - SHA of the previous built commit from the same branch (not set on first build on a branch)
  • GIT_PREVIOUS_SUCCESSFUL_COMMIT - SHA of the previous successfully built commit from the same branch (not set on first build on a branch)
  • GIT_URL - Repository remote URL
  • GIT_URL_N - Repository remote URLs when there are more than 1 remotes, e.g. GIT_URL_1, GIT_URL_2
  • GIT_AUTHOR_NAME and GIT_COMMITTER_NAME - The name entered if the "Custom user name/e-mail address" behaviour is enabled; falls back to the value entered in the Jenkins system config under "Global Config user.name Value" (if any)
  • GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL - The email entered if the "Custom user name/e-mail address" behaviour is enabled; falls back to the value entered in the Jenkins system config under "Global Config user.email Value" (if any)

Change Log - Moved to GitHub

Version 3.

...

11.0

...

(July 27, 2019) - Moved to GitHub

Version 3.10.1 (July 5, 2019) - Moved to GitHub

Version 3.10.0 (May 2, 2019)

  • (info)   Require Java 8
  • (info)   Require Jenkins 2.121.1 or newer
  • (error)   Fix upgrade compatibility error for mergeStrategy 'default' of pre-build merge in pipeline jobs (JENKINS-51638)

...