forked from guisesterheim/Jenkins-As-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins.yaml
47 lines (44 loc) · 1.19 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
---
jenkins:
systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code"
credentials:
system:
domainCredentials:
- credentials:
- usernamePassword:
id: "CREDENTIAL_1"
username: "user"
password: "pass from vault"
description: "My secret credential"
scope: GLOBAL
- usernamePassword:
id: "GIT_ACCESS_TOKEN"
username: "GIT_ACCESS_TOKEN"
password: "pass from vault"
description: "My secret GIT credential"
scope: GLOBAL
jobs:
- script: >
folder('Platform')
- script: >
folder('Platform/Services')
- script: >
folder('Platform/Services/Company')
- script: >
pipelineJob('Platform/Services/Company/DEV') {
definition {
cpsScm {
scm {
git {
remote {
url('https://gitlab.com/company/folder/folder2/project.git')
credentials('GIT_ACCESS_TOKEN')
}
branch('*/dev')
}
}
scriptPath("Jenkinsfile")
lightweight()
}
}
}