forked from jenkinsci/configuration-as-code-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkins.yaml
More file actions
82 lines (73 loc) · 2.1 KB
/
jenkins.yaml
File metadata and controls
82 lines (73 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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"
mounts:
- "type=tmpfs,destination=/run"
- "type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock"
- "type=volume,src=hello,dst=/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
jfrogInstances:
- instanceId: artifactory
platformUrl: http://acme.com/artifactory
artifactoryUrl: http://acme.com/artifactory
distributionUrl: http://acme.com/distribution
resolverCredentialsConfig:
username: artifactory_user
password: "${ARTIFACTORY_PASSWORD}"
globalLibraries:
libraries:
- name: "awesome-lib"
retriever:
modernSCM:
scm:
gitSource:
remote: "https://github.com/jenkins-infra/pipeline-library.git"
location:
adminAddress: [email protected]
url: https://ci.example.com/
mailer:
replyToAddress: [email protected]
smtpHost: smtp.acme.org
smtpPort: 4441