forked from Praqma/praqma-jenkins-casc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins.yaml
141 lines (128 loc) · 5.33 KB
/
jenkins.yaml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#configuration-as-code:
# deprecation: warn
jenkins:
systemMessage: "Welcome to the demo setup for Jenkins Configuration as Code plugin. For more information look in the official repo with our demo setup: https://github.com/Praqma/praqma-jenkins-casc"
agentProtocols:
- "JNLP4-connect"
securityRealm:
local:
allowsSignup: false
users:
- id: ${adminuser:-demoAdmin}
password: ${adminpw:-passw0rd}
authorizationStrategy:
globalMatrix:
grantedPermissions:
- "Overall/Read:anonymous"
- "Job/Read:anonymous"
- "View/Read:anonymous"
- "Overall/Administer:authenticated"
crumbIssuer: "standard"
credentials:
system:
domainCredentials:
- credentials:
- usernamePassword:
scope: SYSTEM
id: github-user
username: ${github_user}
password: ${github_pass}
- basicSSHUserPrivateKey:
scope: SYSTEM
id: agent-private-key
username: agentuser
passphrase: ""
description: "ssh private key used to connect ssh slaves"
privateKeySource:
directEntry: # The key 'agent_private_key' resolved from a docker secret defined in docker-compose.yml
privateKey: ${agent_private_key}
jobs:
- url: https://raw.githubusercontent.com/Praqma/job-dsl-collection/master/configuration-as-code-dsl/pipeline.dsl #casc
- url: https://raw.githubusercontent.com/Praqma/memory-map-plugin/master/jenkins-pipeline/pipeline.groovy #memory map
- url: https://raw.githubusercontent.com/Praqma/codesonar-plugin/master/jenkins-pipeline/pipeline.groovy #codesonar
- url: https://raw.githubusercontent.com/Praqma/pretested-integration-plugin/master/jenkins-pipeline/pipeline.groovy #pretested integration
- url: https://raw.githubusercontent.com/Praqma/ClearCaseUCMPlugin/master/jenkins-pipeline/pipeline.groovy #ccucm
- url: https://raw.githubusercontent.com/Praqma/Praqmatic-Automated-Changelog/master/jenkins-pipeline/pipeline.groovy #pac
- url: https://raw.githubusercontent.com/Praqma/PlusBump/rebirth/jenkins-pipeline/pipeline.groovy #plusbump
# - url: https://raw.githubusercontent.com/Praqma/job-dsl-collection/master/web-pipeline-dsl/web_pipeline_dsl.groovy #websites
# - file: ./jobdsl/rut.groovy #rut (private repo...better keep it here)
tool:
git:
installations:
- name: Default
home: "git"
security:
remotingCLI:
enabled: false
unclassified:
location:
url: https://jenkins.praqma.cloud
adminAddress: support@praqma.net
warnings:
parsers:
- name: "LinkChecker CSV (Jekyll flavor)"
linkName: "Jekyll LinkChecker"
trendName: "LinkChecker CSV (Jekyll flavor)"
regexp: "([^\\n;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^;]*?(?=;))?;([^\\n]*)"
script: |
import hudson.plugins.analysis.util.model.Priority
import hudson.plugins.warnings.parser.Warning
def obj = [
url : matcher.group(1),
parentUrl : matcher.group(2),
baseRef : matcher.group(3),
result : matcher.group(4),
warningString: matcher.group(5),
infoString : matcher.group(6),
valid : matcher.group(7),
fullUrl : matcher.group(8),
line : matcher.group(9),
column : matcher.group(10),
name : matcher.group(11),
dlTime : matcher.group(12),
dlSize : matcher.group(13),
checkTime : matcher.group(14),
cached : matcher.group(15),
level : matcher.group(16),
modified : matcher.group(17)
]
String jekyllTarget = "_site"
String defaultIndex = "index.html"
String source = obj.parentUrl
def line = obj.line.toInteger()
def type = obj.level
def category = obj.result
message = "$obj.fullUrl: ($obj.result) $obj.warningString - $obj.infoString"
def priority = null
if ( category.equalsIgnoreCase("ignored"))
if (obj.warningString != null && obj.warningString != "" ){
priority = Priority.HIGH
category = "warning"
} else
priority = Priority.LOW
else
priority = Priority.NORMAL
if (obj.valid.equalsIgnoreCase("false"))
priority = Priority.HIGH
return new Warning(source, line, type, category, message, priority)
example: ""
globalLibraries:
libraries:
- name: "praqma-shared@master"
implicit: true
defaultVersion: "master"
retriever:
modernSCM:
scm:
git:
remote: "https://github.com/Praqma/shared-pipeline.git"
#plugins:
# required:
# credentials: 2.1.17
# git: 3.9.0
# ssh-slaves: 1.26
# warnings: 4.66
# matrix-auth: 2.2
# job-dsl: 1.68
# workflow-aggregator: 2.5
# timestamper: 1.8.9