Add jenkins charts
[it/dep.git] / smo-install / tests_oom / oran-tests-suite / values.yaml
1 # Copyright © 2022 AT&T Intellectual Property
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 testsSuite:
16   jenkins: true
17   tests: false
18
19 oran-tests:
20   oranTests:
21     name: orantests1
22     flag: true
23     commitId: 7b4b4007db003d28ee347e3d373e8ac605581cb5
24
25 github:
26   username: testuser
27   password: api-token
28 gerrit:
29   username: testuser
30   password: api-token
31
32 jenkins:
33   controller:
34     imagePullPolicy: "IfNotPresent"
35     nodePort: 32080
36     serviceType: NodePort
37     additionalExistingSecrets:
38       - name: github-secret-credentials
39         keyName: username
40       - name: github-secret-credentials
41         keyName: password
42       - name: gerrit-secret-credentials
43         keyName: username
44       - name: gerrit-secret-credentials
45         keyName: password
46
47
48     additionalPlugins: 
49       - job-dsl:1.77
50       - pipeline-githubnotify-step:1.0.5
51       - lockable-resources:2.14
52       - gerrit-code-review:0.4.4
53     JCasC:
54       securityRealm: |-
55         local:
56           allowsSignup: false
57           enableCaptcha: false
58           users:
59           - id: "test"
60             name: "Jenkins Admin"
61             password: "test"
62       authorizationStrategy: |-
63         loggedInUsersCanDoAnything:
64           allowAnonymousRead: true
65       defaultConfig: true
66       configScripts:
67         welcome-message: |
68           jenkins:
69             systemMessage: Welcome to the ORAN SMO Package embedded CI\CD server.  This Jenkins is configured and managed 'as code'.
70         credentials: |
71           credentials:
72             system:
73               domainCredentials:
74               - credentials:
75                 - usernamePassword:
76                     description: "github access username password"
77                     id: "github_username_pass"
78                     password: ${github-secret-credentials-password}
79                     scope: GLOBAL
80                     username: ${github-secret-credentials-username}
81                 - usernamePassword:
82                     description: "gerrit access username password"
83                     id: "gerrit_username_pass"
84                     password: ${gerrit-secret-credentials-password}
85                     scope: GLOBAL
86                     username: ${gerrit-secret-credentials-username}
87
88         proxy: ""
89         views: |
90           jenkins:
91             views:
92             - all:
93                 name: "all"
94             - list:
95                 columns:
96                 - "status"
97                 - "weather"
98                 - "jobName"
99                 - "lastSuccess"
100                 - "lastFailure"
101                 - "lastDuration"
102                 - "buildButton"
103                 includeRegex: "github-manual.*"
104                 name: "github-manual"
105             - list:
106                 columns:
107                 - "status"
108                 - "weather"
109                 - "jobName"
110                 - "lastSuccess"
111                 - "lastFailure"
112                 - "lastDuration"
113                 - "buildButton"
114                 includeRegex: "gerrit-manual.*"
115                 name: "gerrit-manual"
116             - list:
117                 columns:
118                 - "status"
119                 - "weather"
120                 - "jobName"
121                 - "lastSuccess"
122                 - "lastFailure"
123                 - "lastDuration"
124                 - "buildButton"
125                 includeRegex: "github-automatic.*"
126                 name: "github-automatic"
127             - list:
128                 columns:
129                 - "status"
130                 - "weather"
131                 - "jobName"
132                 - "lastSuccess"
133                 - "lastFailure"
134                 - "lastDuration"
135                 - "buildButton"
136                 includeRegex: "gerrit-automatic.*"
137                 name: "gerrit-automatic"
138
139
140         proxy: ""
141         pipeline-job: | 
142           jobs:
143             - script: >
144                 pipelineJob('github-manual-start-test') {
145                   parameters {
146                     stringParam('BRANCH',"*/main","Branch or Commit ID")
147                     stringParam('FLAVOR', "pythonsdk-tests", "Helm override SMO Package flavor, it is obviously the directory in the helm-override folder")
148                   }
149                   concurrentBuild(false)
150                   description('This job is triggered manually to execute the SMO tests on the RUNNING SMO in the K8S cluster')
151                   definition {
152                     cpsScm {
153                       scm {
154                         git {
155                           remote {
156                             github('sebdet/oran-deployment')
157                           }
158                           branch('$BRANCH')
159                           extensions { 
160                             cleanBeforeCheckout()
161                           }
162
163                         }
164                       }
165                       scriptPath("jenkins/github/manual-tests-pipeline")
166                     }
167                   }
168                 } 
169             - script: >
170                 pipelineJob('github-manual-start-smo') {
171                   parameters {
172                     stringParam('BRANCH',"*/main","Branch or Commit ID")
173                     stringParam('FLAVOR', "pythonsdk-tests", "Helm override SMO Package flavor, it is obviously the directory in the helm-override folder")
174                   }
175                   description('This job is triggered manually to start SMO in the K8S cluster')
176                   concurrentBuild(false)
177                   definition {
178                     cpsScm {
179                       scm {
180                         git {
181                           remote {
182                             github('sebdet/oran-deployment')
183                           }
184                           branch('$BRANCH')
185                           extensions {
186                             cleanBeforeCheckout()
187                           }
188                         }
189                       }
190                       scriptPath("jenkins/github/manual-start-pipeline")
191                     }
192                   }
193                 }
194             - script: >
195                 pipelineJob('github-manual-stop-smo') {
196                   parameters {
197                     stringParam('BRANCH',"*/main","Branch or Commit ID")
198                   }
199
200                   concurrentBuild(false)
201                   description('This job is triggered manually to stop the running SMO in the K8S cluster')
202                   definition {
203                     cpsScm {
204                       scm {
205                         git {
206                           remote {
207                             github('sebdet/oran-deployment')
208                           }
209                           branch('$BRANCH')
210                         }
211                       }
212                       scriptPath("jenkins/github/manual-stop-pipeline")
213                     }
214                   }
215                 }
216             - script: >
217                 multibranchPipelineJob('github-automatic-trigger-verify') {
218                   description('This job is triggered automatically when pull requests are opened on GITHUB.')
219                   triggers {
220                     periodic(30)
221                   }
222                   branchSources {
223                     github {
224                       id('1') // IMPORTANT: use a constant and unique identifier
225                       repoOwner('sebdet')
226                       repository('oran-deployment')
227                       scanCredentialsId('github_username_pass')
228                       buildForkPRHead(false)
229                       buildForkPRMerge(false)
230                       buildOriginBranch(true)
231                       buildOriginBranchWithPR(false)
232                       buildOriginPRHead(true)
233                       buildOriginPRMerge(false)
234                     }
235                   }
236                   factory {
237                     workflowBranchProjectFactory {
238                       // Relative location within the checkout of your Pipeline script.
239                       scriptPath("jenkins/github/automatic-verify-pipeline")
240                     }
241                   } 
242                 }
243             - script: >
244                 multibranchPipelineJob('gerrit-automatic-trigger-verify') {
245                   description('This job is triggered automatically when pull requests are opened on LF GERRIT.')
246                   triggers {
247                     periodic(30)
248                   }
249                   branchSources {
250                     branchSource {
251                       source {
252                         gerrit {
253                           id('2') // IMPORTANT: use a constant and unique identifier
254                           credentialsId('gerrit_username_pass')
255                           remote("https://gerrit.o-ran-sc.org/r/a/it/dep")
256                           traits {
257                             changeDiscoveryTrait {
258                               queryString("is:open")
259                             }
260                           }
261                         }
262                       }
263                     }
264                   }
265                   factory {
266
267                     workflowBranchProjectFactory {
268                       // Relative location within the checkout of your Pipeline script.
269                       scriptPath("smo-install/jenkins/gerrit/automatic-verify-pipeline")
270                     }
271                   }
272                 }
273
274             - script: >
275                 pipelineJob('gerrit-manual-start-test') {
276                   parameters {
277                     stringParam('BRANCH',"master","Branch or Commit ID")
278                     stringParam('FLAVOR', "pythonsdk-tests", "Helm override SMO Package flavor, it is obviously the directory in the helm-override folder")
279                   }
280                   concurrentBuild(false)
281                   description('This job is triggered manually to execute the SMO tests on the RUNNING SMO in the K8S cluster')
282                   definition {
283                     cpsScm {
284                       scm {
285                         git {
286                           remote {
287                            url('https://gerrit.o-ran-sc.org/r/it/dep')
288                           }
289                           branch('$BRANCH')
290                           extensions {
291                             cleanBeforeCheckout()
292                           }
293
294                         }
295                       }
296                       scriptPath("smo-install/jenkins/gerrit/manual-tests-pipeline")
297                     }
298                   }
299                 }
300
301             - script: >
302                 pipelineJob('gerrit-manual-start-smo') {
303                   parameters {
304                     stringParam('BRANCH',"master","Branch or Commit ID")
305                     stringParam('FLAVOR', "pythonsdk-tests", "Helm override SMO Package flavor, it is obviously the directory in the helm-override folder")
306                   }
307                   description('This job is triggered manually to start SMO in the K8S cluster')
308                   concurrentBuild(false)
309                   definition {
310                     cpsScm {
311                       scm {
312                         git {
313                           remote {
314                             url('https://gerrit.o-ran-sc.org/r/it/dep')
315                           }
316                           branch('$BRANCH')
317                           extensions {
318                             cleanBeforeCheckout()
319                           }
320                         }
321                       }
322                       scriptPath("smo-install/jenkins/gerrit/manual-start-pipeline")
323                     }
324                   }
325                 }
326
327             - script: >
328                 pipelineJob('gerrit-manual-stop-smo') {
329                   parameters {
330                     stringParam('BRANCH',"master","Branch or Commit ID")
331                   }
332
333                   concurrentBuild(false)
334                   description('This job is triggered manually to stop the running SMO in the K8S cluster')
335                   definition {
336                     cpsScm {
337                       scm {
338                         git {
339                           remote {
340                             url('https://gerrit.o-ran-sc.org/r/it/dep')
341                           }
342                           branch('$BRANCH')
343                           extensions {
344                             cleanBeforeCheckout()
345                           }
346                         }
347                       }
348                       scriptPath("smo-install/jenkins/gerrit/manual-stop-pipeline")
349                     }
350                   }
351                 }