80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
jenkins:
|
|
systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code plugin\n\n"
|
|
numExecutors: 5
|
|
scmCheckoutRetryCount: 2
|
|
mode: NORMAL
|
|
|
|
globalNodeProperties:
|
|
- envVars:
|
|
env:
|
|
- key: FOO
|
|
value: BAR
|
|
|
|
authorizationStrategy:
|
|
loggedInUsersCanDoAnything:
|
|
allowAnonymousRead: false
|
|
|
|
clouds:
|
|
- docker:
|
|
name: "docker"
|
|
dockerApi:
|
|
dockerHost:
|
|
uri: "unix:///var/run/docker.sock"
|
|
templates:
|
|
- labelString: "docker-agent"
|
|
dockerTemplateBase:
|
|
image: "jenkins/slave"
|
|
volumes:
|
|
- hello:/hello
|
|
- world:/world
|
|
environmentsString: |
|
|
hello=world
|
|
foo=bar
|
|
remoteFs: "/home/jenkins/agent"
|
|
connector:
|
|
attach:
|
|
user: "jenkins"
|
|
instanceCapStr: "10"
|
|
|
|
tool:
|
|
git:
|
|
installations:
|
|
- name: git
|
|
home: /usr/local/bin/git
|
|
|
|
## If Jenkins <2.165 then you can comment out the below section:
|
|
##
|
|
## https://github.com/jenkinsci/configuration-as-code-plugin/issues/754
|
|
##
|
|
##security:
|
|
## remotingCLI:
|
|
## enabled: false
|
|
|
|
unclassified:
|
|
artifactorybuilder:
|
|
useCredentialsPlugin: true
|
|
artifactoryServers:
|
|
- serverId: artifactory
|
|
artifactoryUrl: http://acme.com/artifactory
|
|
resolverCredentialsConfig:
|
|
username: artifactory_user
|
|
password: "${ARTIFACTORY_PASSWORD}"
|
|
|
|
globalLibraries:
|
|
libraries:
|
|
- name: "awesome-lib"
|
|
retriever:
|
|
modernSCM:
|
|
scm:
|
|
git:
|
|
remote: "https://github.com/jenkins-infra/pipeline-library.git"
|
|
|
|
location:
|
|
adminAddress: you@example.com
|
|
url: https://ci.example.com/
|
|
|
|
mailer:
|
|
replyToAddress: do-not-reply@acme.org
|
|
smtpHost: smtp.acme.org
|
|
smtpPort: 4441
|