forked from openshift/openshift-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenshift-tools-pr-automation-template.json
More file actions
150 lines (150 loc) · 3.95 KB
/
openshift-tools-pr-automation-template.json
File metadata and controls
150 lines (150 loc) · 3.95 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
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
141
142
143
144
145
146
147
148
149
150
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "openshift-tools-pr-automation",
"annotations": {
"openshift.io/display-name": "openshift-tools PR automation",
"description": "Validate and build pull requests to the openshift-tools repository",
"iconClass": "icon-python"
}
},
"labels": {
"template": "openshift-tools-pr-automation"
},
"objects": [
{
"kind": "Secret",
"apiVersion": "v1",
"metadata": {
"name": "${OPENSHIFT_BOT_SECRET_NAME}"
},
"stringData": {
"username": "${OPENSHIFT_BOT_USERNAME}",
"token": "${OPENSHIFT_BOT_OAUTH_TOKEN}"
}
},
{
"kind": "Secret",
"apiVersion": "v1",
"metadata": {
"name": "${WHITELIST_SECRET_NAME}"
},
"stringData": {
"users": "${USER_WHITELIST}",
"orgs": "${ORG_WHITELIST}"
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata": {
"name": "openshift-tools-test",
"annotations": {
"description": "Builds the custom builder image for testing pull requests"
}
},
"spec": {
"source": {
"type": "Git",
"git":{
"uri": "${SOURCE_REPOSITORY_URL}",
"ref": "${SOURCE_REPOSITORY_REF}"
},
"contextDir": "jenkins/test",
"secrets": [
{
"secret": {
"name": "${OPENSHIFT_BOT_SECRET_NAME}"
},
"destinationDir": "openshift-ops-bot"
},
{
"secret": {
"name": "${WHITELIST_SECRET_NAME}"
},
"destinationDir": "whitelist"
}
]
},
"strategy": {
"type": "Docker",
"dockerStrategy": {
"noCache": true,
"env": [
{
"name": "PULL_REQUEST",
"value": "{}"
},
{
"name": "BUILD_URL",
"value": ""
},
{
"name": "OPENSHIFT_BOT_SECRET_DIR",
"value": "openshift-ops-bot"
},
{
"name": "WHITELIST_SECRET_DIR",
"value": "whitelist"
}
]
}
},
"output": {
},
"triggers": [
]
}
}
],
"parameters": [
{
"name": "SOURCE_REPOSITORY_URL",
"displayName": "Git Repository URL",
"description": "The URL of the repository with your application source code.",
"required": true,
"value": "https://github.com/openshift/openshift-tools.git"
},
{
"name": "SOURCE_REPOSITORY_REF",
"displayName": "Git Reference",
"description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
"value": "stg"
},
{
"name": "OPENSHIFT_BOT_USERNAME",
"displayName": "Github Bot Username",
"required": true
},
{
"name": "OPENSHIFT_BOT_OAUTH_TOKEN",
"displayName": "Github Bot Oauth Token",
"required": true
},
{
"name": "OPENSHIFT_BOT_SECRET_NAME",
"displayName": "Bot Credentials Secret Name",
"required": false,
"value": "openshift-ops-bot-secret"
},
{
"name": "WHITELIST_SECRET_NAME",
"displayName": "Admin Whitelist Secret Name",
"required": false,
"value": "admin-whitelist-secret"
},
{
"name": "USER_WHITELIST",
"displayName": "Comma-seperated list of github users. Ex: kearny,jimbo,nelson",
"required": false,
"value": ""
},
{
"name": "ORG_WHITELIST",
"displayName": "Comma-seperated list of github organizations. Ex: openshift,google",
"required": false,
"value": ""
}
]
}