blob: 5f6e62f342ac48ad3678ed9991f0732cb11bb42a [file] [log] [blame]
LF Jenkins CIfb465f62021-10-14 13:32:45 +00001---
2- project:
3 name: pti-o2-project-view
4 project-name: pti-o2
5 views:
6 - project-view
7
8- project:
9 name: pti-o2-info
10 project: pti/o2
11 project-name: pti-o2
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
Bin Yangd818ab22021-10-22 13:50:26 +080015
16- pti_o2_common: &pti_o2_common
17 # values apply to all pti/o2 projects
18 name: pti-o2-common
19 # git repo
20 project: pti/o2
21 # jenkins job name prefix
22 project-name: pti-o2
23 # maven settings file has credentials
24 mvn-settings: pti-o2-settings
25
26- pti_o2_python: &pti_o2_python
27 # settings for python builds
28 name: pti-o2-python
29 # the install script assumes an ubuntu image
30 build-node: ubuntu1804-builder-2c-2g
31 # impt for verify and tox etc
32 python-version: python3
33 # no need to verify docs
34 tox-envs: code,flake8
35
36- project:
37 <<: *pti_o2_common
38 <<: *pti_o2_python
39 name: pti-o2-imsdms-verify
40 # do not trigger on changes in docs, releases
41 gerrit_trigger_file_paths:
42 - compare-type: REG_EXP
43 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
44 jobs:
45 - gerrit-tox-verify
46 stream:
47 - master:
48 branch: master
Bin Yang00b84112021-10-22 13:58:26 +080049
50- project:
51 <<: *pti_o2_common
52 <<: *pti_o2_python
53 name: pti-o2-imsdms-sonarqube
54 sonar-project-file: ""
55 sonar-properties: |
56 sonar.login={sonarcloud_api_token}
57 sonar.projectKey={sonarcloud_project_organization}_{project-name}
58 sonar.projectName={project-name}
59 sonar.organization={sonarcloud_project_organization}
60 sonar.build.sourceEncoding=UTF-8
61 sonar.sources=src
62 sonar.python.coverage.reportPaths=coverage.xml
63 jobs:
64 - gerrit-tox-sonarqube
Bin Yangeda7ba72021-10-22 15:00:15 +080065
66- pti_o2_docker: &pti_o2_docker_common
67 <<: *pti_o2_common
68 # values apply to all pti/o2 docker projects
69 # maven settings file has docker credentials
70 docker-name: 'o-ran-sc/pti-o2imsdms'
71 docker-build-args: '--network=host -f Dockerfile'
72 # source of docker tag
73 container-tag-method: yaml-file
74 # docker-root: src
75 # if no container-tag-yaml-dir is defined, container-tag.yml is taken from the docker-root
76 build-node: ubuntu1804-docker-4c-4g
77 stream:
78 - master:
79 branch: master
80
81- project:
82 <<: *pti_o2_docker_common
83 name: pti-o2-imsdms-docker-verify
84 # jenkins job name prefix
85 project-name: '{name}'
86 container-tag-method: latest
87 docker-build-args: '--network=host -f Dockerfile'
88 jobs:
89 - gerrit-docker-verify
90
91- project:
92 <<: *pti_o2_docker_common
93 name: pti-o2-imsdms-release
94 # maven release requires sigul which requires centos
95 # container release requires docker
96 build-node: centos7-docker-2c-8g
97 container-tag-yaml-dir: release
98 gerrit_trigger_file_paths:
99 - compare-type: REG_EXP
100 pattern: 'release/.*'
101 jobs:
102 - '{project-name}-gerrit-release-jobs'