-
Notifications
You must be signed in to change notification settings - Fork 2
/
jenkins.yml
89 lines (80 loc) · 2.18 KB
/
jenkins.yml
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
83
84
85
86
87
88
89
jenkins:
# Configure crumb issuer
crumbIssuer: standard
# Enable agent -> master access control
remotingSecurity:
enabled: true
# Configure agent protocols
agentProtocols:
- "Ping"
- "JNLP4-connect"
# Configure local users
# Disable ability to signup
# Create administrator account
securityRealm:
local:
allowsSignup: false
users:
- id: "admin"
password: ${ADMIN_PASSWORD}
# Configure role-based authorization strategy
authorizationStrategy:
roleBased:
roles:
global:
- name: "admin"
description: "Jenkins administrators"
permissions:
- "Overall/Administer"
assignments:
- "admin"
- name: "authenticated"
description: "Authenticated users"
permissions:
- "Job/Build"
- "Job/Cancel"
- "Job/Read"
- "Job/Discover"
- "Overall/Read"
assignments:
- "authenticated"
credentials:
system:
domainCredentials:
- domain:
name: "GitHub"
description: "Github"
specifications:
- hostnameSpecification:
includes: "github.com, *.github.com"
credentials:
- string:
scope: GLOBAL
id: github_access_token
secret: ${GITHUB_TOKEN}
- usernamePassword:
scope: GLOBAL
id: github_username_password
username: ${GITHUB_USERNAME}
password: ${GITHUB_PASSWORD}
unclassified:
location:
url: ${JENKINS_URL}
# Configure GitHub plugin
githubpluginconfig:
configs:
- name: GitHub
apiUrl: https://api.github.com
manageHooks: true
credentialsId: github_access_token
# Configure SonarQube plugin
sonarglobalconfiguration:
installations:
- name: SonarQube
serverUrl: ${SONARQUBE_URL}
serverAuthenticationToken: ${SONARQUBE_TOKEN}
# Configure simple theme plugin
simple-theme-plugin:
elements:
- cssUrl:
url: "https://tobix.github.io/jenkins-neo2-theme/dist/neo-light.css"