-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjenkins.yaml
107 lines (105 loc) · 3.03 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
jenkins:
systemMessage: "This jenkins instance is for icdc program"
agentProtocols:
- "JNLP4-connect"
securityRealm:
local:
allowsSignup: false
users:
- id: jenkinsAdmin
password: ${jenkinsAdmin}
authorizationStrategy:
globalMatrix:
grantedPermissions:
- "Overall/Read:authenticated"
- "Job/Read:authenticated"
- "View/Read:authenticated"
- "Overall/Administer:authenticated"
crumbIssuer: "standard"
clouds:
- docker:
name: "docker"
dockerApi:
dockerHost:
uri: "tcp://${DOCKER_AGENT_IP}:2375"
templates:
- labelString: "icdc_maven"
dockerTemplateBase:
image: "vdonkor/cicd-maven"
environmentsString: |
TOMCAT01_IP=${TOMCAT01_IP}
TOMCAT02_IP=${TOMCAT02_IP}
SLACK_URL=${SLACK_URL}
NEO4J_IP=${NEO4J_IP}
remoteFs: "/home/jenkins"
connector:
attach:
user: "root"
instanceCapStr: "10"
jobs:
- script: >
folder('icdc')
- url: https://raw.githubusercontent.com/vdonkor/ctn/master/jobs/icdc/pipeline.groovy
tool:
git:
installations:
- name: Default
home: git
jdk:
installations:
- name: jdk11
home: /usr/lib/jvm/jre-11-openjdk
maven:
installations:
- name: maven-3.6.1
home: /usr/local/maven
credentials:
system:
domainCredentials:
- credentials:
- string:
scope: GLOBAL
id: authorization_bearer
secret: "${bearer}"
description: neo4j authorization bearer
- usernamePassword:
scope: GLOBAL
id: c9c-deployer
username: "icdcTomcat"
password: ${jenkinsAdmin}
description: user for deploying c9c
- usernamePassword:
scope: GLOBAL
id: vdonkor
username: vdonkor
password: ${vdonkor}
description: github checkout
- usernamePassword:
scope: GLOBAL
id: neo4j_user
username: neo4j
password: ${neo4j}
description: neo4j db user and password
- basicSSHUserPrivateKey:
scope: GLOBAL
id: deployer_ssh_key
username: jenkins
description: "ssh key for deploying application"
privateKeySource:
directEntry:
privateKey: ${sshkey}
unclassified:
slackNotifier:
teamDomain: ${SLACK_TEAM} # i.e. your-company (just the workspace name not the full url)
tokenCredentialId: icdc-jenkin-slack
globalLibraries:
libraries:
- defaultVersion: "master"
name: "shared-library"
retriever:
modernSCM:
scm:
git:
remote: "https://github.com/vdonkor/shared-library"
traits:
- "branchDiscoveryTrait"