-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global configuration as code example
- Loading branch information
1 parent
8293c49
commit ffc1b76
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -426,7 +426,31 @@ If the workspace is removed, the tag that was applied is lost. | |
Tagging a workspace made sense when using centralized repositories that automatically applied the tag to the centralized repository. | ||
Applying a git tag in an agent workspace doesn't have many practical uses. | ||
|
||
[#configuration-as-code] | ||
=== Configuration as code | ||
|
||
The global settings of the git plugin can be defined with the Jenkins link:https://plugins.jenkins.io/configuration-as-code/[configuration as code plugin]. | ||
Detailed descriptions of the individual settings are available in the link:#global-configuration[global configuration settings] section of this document. | ||
|
||
An example configuration might look like this: | ||
|
||
[,yaml] | ||
---- | ||
unclassified: | ||
scmGit: | ||
addGitTagAction: false | ||
allowSecondFetch: false | ||
createAccountBasedOnEmail: false | ||
disableGitToolChooser: false | ||
globalConfigEmail: "[email protected]" | ||
globalConfigName: "jenkins-user" | ||
hideCredentials: false | ||
showEntireCommitSummaryInChanges: true | ||
useExistingAccountWithSameEmail: false | ||
---- | ||
|
||
[#security-configuration] | ||
|
||
=== Security Configuration | ||
|
||
image:/images/git-security-configuration.png[Security Configuration] | ||
|