Last active
March 7, 2021 15:39
-
-
Save Rubenmp/c40be9a8ff7e99e3f3444a448a1b0c49 to your computer and use it in GitHub Desktop.
Example of jenkins configuration as code
This file contains hidden or 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
jenkins: | |
agentProtocols: | |
- "JNLP4-connect" | |
- "Ping" | |
authorizationStrategy: | |
loggedInUsersCanDoAnything: | |
allowAnonymousRead: false | |
crumbIssuer: | |
standard: | |
excludeClientIPFromCrumb: false | |
disableRememberMe: false | |
labelAtoms: | |
- name: "master" | |
markupFormatter: "plainText" | |
mode: NORMAL | |
myViewsTabBar: "standard" | |
numExecutors: 2 | |
primaryView: | |
all: | |
name: "all" | |
projectNamingStrategy: "standard" | |
quietPeriod: 5 | |
remotingSecurity: | |
enabled: true | |
scmCheckoutRetryCount: 0 | |
securityRealm: | |
local: | |
allowsSignup: false | |
enableCaptcha: false | |
users: | |
- id: "admin" | |
name: "Ruben Morales Perez" | |
properties: | |
- "myView" | |
- preferredProvider: | |
providerId: "default" | |
- "timezone" | |
- mailer: | |
emailAddress: "[email protected]" | |
- "apiToken" | |
slaveAgentPort: -1 | |
updateCenter: | |
sites: | |
- id: "default" | |
url: "https://updates.jenkins.io/update-center.json" | |
views: | |
- all: | |
name: "all" | |
viewsTabBar: "standard" | |
security: | |
apiToken: | |
creationOfLegacyTokenEnabled: false | |
tokenGenerationOnCreationEnabled: false | |
usageStatisticsEnabled: true | |
sSHD: | |
port: -1 | |
unclassified: | |
buildDiscarders: | |
configuredBuildDiscarders: | |
- "jobBuildDiscarder" | |
buildStepOperation: | |
enabled: false | |
email-ext: | |
adminRequiredForTemplateTesting: false | |
allowUnregisteredEnabled: false | |
charset: "UTF-8" | |
debugMode: false | |
defaultBody: |- | |
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: | |
Check console output at $BUILD_URL to view the results. | |
defaultSubject: "$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!" | |
defaultTriggerIds: | |
- "hudson.plugins.emailext.plugins.trigger.FailureTrigger" | |
maxAttachmentSize: -1 | |
maxAttachmentSizeMb: -1 | |
precedenceBulk: false | |
watchingEnabled: false | |
fingerprints: | |
fingerprintCleanupDisabled: false | |
storage: "file" | |
gitSCM: | |
addGitTagAction: false | |
allowSecondFetch: false | |
createAccountBasedOnEmail: false | |
disableGitToolChooser: false | |
hideCredentials: false | |
showEntireCommitSummaryInChanges: false | |
useExistingAccountWithSameEmail: false | |
junitTestResultStorage: | |
storage: "file" | |
location: | |
adminAddress: "address not configured yet <nobody@nowhere>" | |
url: "http://localhost:7000/" | |
mailer: | |
charset: "UTF-8" | |
useSsl: false | |
useTls: false | |
pollSCM: | |
pollingThreadCount: 10 | |
timestamper: | |
allPipelines: false | |
elapsedTimeFormat: "'<b>'HH:mm:ss.S'</b> '" | |
systemTimeFormat: "'<b>'HH:mm:ss'</b> '" | |
tool: | |
git: | |
installations: | |
- home: "git" | |
name: "Default" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment