1 # Copyright © 2022 AT&T Intellectual Property
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
23 commitId: 7b4b4007db003d28ee347e3d373e8ac605581cb5
34 imagePullPolicy: "IfNotPresent"
37 additionalExistingSecrets:
38 - name: github-secret-credentials
40 - name: github-secret-credentials
42 - name: gerrit-secret-credentials
44 - name: gerrit-secret-credentials
50 - pipeline-githubnotify-step:1.0.5
51 - lockable-resources:2.14
52 - gerrit-code-review:0.4.4
62 authorizationStrategy: |-
63 loggedInUsersCanDoAnything:
64 allowAnonymousRead: true
69 systemMessage: Welcome to the ORAN SMO Package embedded CI\CD server. This Jenkins is configured and managed 'as code'.
76 description: "github access username password"
77 id: "github_username_pass"
78 password: ${github-secret-credentials-password}
80 username: ${github-secret-credentials-username}
82 description: "gerrit access username password"
83 id: "gerrit_username_pass"
84 password: ${gerrit-secret-credentials-password}
86 username: ${gerrit-secret-credentials-username}
103 includeRegex: "github-manual.*"
104 name: "github-manual"
114 includeRegex: "gerrit-manual.*"
115 name: "gerrit-manual"
125 includeRegex: "github-automatic.*"
126 name: "github-automatic"
136 includeRegex: "gerrit-automatic.*"
137 name: "gerrit-automatic"
144 pipelineJob('github-manual-start-test') {
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")
149 concurrentBuild(false)
150 description('This job is triggered manually to execute the SMO tests on the RUNNING SMO in the K8S cluster')
156 github('sebdet/oran-deployment')
160 cleanBeforeCheckout()
165 scriptPath("jenkins/github/manual-tests-pipeline")
170 pipelineJob('github-manual-start-smo') {
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")
175 description('This job is triggered manually to start SMO in the K8S cluster')
176 concurrentBuild(false)
182 github('sebdet/oran-deployment')
186 cleanBeforeCheckout()
190 scriptPath("jenkins/github/manual-start-pipeline")
195 pipelineJob('github-manual-stop-smo') {
197 stringParam('BRANCH',"*/main","Branch or Commit ID")
200 concurrentBuild(false)
201 description('This job is triggered manually to stop the running SMO in the K8S cluster')
207 github('sebdet/oran-deployment')
212 scriptPath("jenkins/github/manual-stop-pipeline")
217 multibranchPipelineJob('github-automatic-trigger-verify') {
218 description('This job is triggered automatically when pull requests are opened on GITHUB.')
224 id('1') // IMPORTANT: use a constant and unique identifier
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)
237 workflowBranchProjectFactory {
238 // Relative location within the checkout of your Pipeline script.
239 scriptPath("jenkins/github/automatic-verify-pipeline")
244 multibranchPipelineJob('gerrit-automatic-trigger-verify') {
245 description('This job is triggered automatically when pull requests are opened on LF 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")
257 changeDiscoveryTrait {
258 queryString("is:open")
267 workflowBranchProjectFactory {
268 // Relative location within the checkout of your Pipeline script.
269 scriptPath("smo-install/jenkins/gerrit/automatic-verify-pipeline")
275 pipelineJob('gerrit-manual-start-test') {
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")
280 concurrentBuild(false)
281 description('This job is triggered manually to execute the SMO tests on the RUNNING SMO in the K8S cluster')
287 url('https://gerrit.o-ran-sc.org/r/it/dep')
291 cleanBeforeCheckout()
296 scriptPath("smo-install/jenkins/gerrit/manual-tests-pipeline")
302 pipelineJob('gerrit-manual-start-smo') {
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")
307 description('This job is triggered manually to start SMO in the K8S cluster')
308 concurrentBuild(false)
314 url('https://gerrit.o-ran-sc.org/r/it/dep')
318 cleanBeforeCheckout()
322 scriptPath("smo-install/jenkins/gerrit/manual-start-pipeline")
328 pipelineJob('gerrit-manual-stop-smo') {
330 stringParam('BRANCH',"master","Branch or Commit ID")
333 concurrentBuild(false)
334 description('This job is triggered manually to stop the running SMO in the K8S cluster')
340 url('https://gerrit.o-ran-sc.org/r/it/dep')
344 cleanBeforeCheckout()
348 scriptPath("smo-install/jenkins/gerrit/manual-stop-pipeline")