Skip to content

Commit

Permalink
Add global configuration as code example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Nov 23, 2023
1 parent 8293c49 commit ffc1b76
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ffc1b76

Please sign in to comment.