blob: 83f2a3b8387fa99e712c8339fb32c25bf2477ef0 [file] [log] [blame]
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -04001---
2- project:
3 name: com-pylog-project-view
4 project-name: com-pylog
5 views:
6 - project-view
7
8- project:
9 name: com-pylog-info
10 project: com/pylog
11 project-name: com-pylog
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
15
16- pylog_common: &pylog_common
17 name: pylog-common
18 # git repo
19 project: com/pylog
20 # jenkins job name prefix
21 project-name: com-pylog
22 # maven settings file has docker credentials
23 mvn-settings: com-pylog-settings
24 # sigul requires centos
25 build-node: centos7-builder-1c-1g
26
27# build package and publish to test.pypi.org
28- project:
29 <<: *pylog_common
30 name: pylog-pypi
Lott, Christopher (cl778h)696a5dc2019-11-06 09:34:14 -050031 # the code is in a subdirectory
32 tox-dir: mdclogpy
Alok Bhattd385a322020-09-21 06:17:20 +000033
34- project:
35 <<: *pylog_common
36 name: com-pylog-docker
37 # image name
38 docker-name: o-ran-sc/com-pylog
39 # source of docker tag
40 container-tag-method: yaml-file
41 # use host network
42 docker-build-args: '--network=host'
43 build-node: centos7-docker-2c-8g
44 # do not trigger on changes in docs, releases
45
Lott, Christopher (cl778h)696a5dc2019-11-06 09:34:14 -050046 gerrit_trigger_file_paths:
47 - compare-type: REG_EXP
48 pattern: 'mdclogpy/.*'
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040049 stream:
50 - master:
51 branch: master
52 jobs:
Lott, Christopher (cl778h)1e6eb5f2020-04-01 08:20:08 -040053 - gerrit-pypi-verify
54 - gerrit-pypi-stage
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040055
Alok Bhattd385a322020-09-21 06:17:20 +000056- pylog_python: &pylog_python
57 # settings for python builds
58 name: com-pylog-python
59 # the install script assumes an ubuntu image
60 build-node: ubuntu1804-builder-2c-2g
61 # impt for verify and tox etc
62 python-version: python3
63 # no need to verify docs
64 tox-envs: py3
65 tox-dir: mdclogpy
66
67
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040068# promote package from test.pypi.org to pypi.org
69- project:
70 <<: *pylog_common
Alok Bhattd385a322020-09-21 06:17:20 +000071 <<: *pylog_python
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040072 name: pylog-pypi-release
Alok Bhattd385a322020-09-21 06:17:20 +000073 # do not trigger on changes in docs, releases
74 gerrit_trigger_file_paths:
75 - compare-type: REG_EXP
76 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040077 jobs:
78 - '{project-name}-gerrit-pypi-release-jobs'
Alok Bhattd385a322020-09-21 06:17:20 +000079 jobs:
80 - gerrit-tox-verify
81 stream:
82 - master:
83 branch: master
84
85- project:
86 <<: *pylog_common
87 <<: *pylog_python
88 name: com-pylog-sonarqube
89 sonar-project-file: ""
90 sonar-properties: |
91 sonar.login={sonarcloud_api_token}
92 sonar.projectKey={sonarcloud_project_organization}_{project-name}
93 sonar.projectName={project-name}
94 sonar.organization={sonarcloud_project_organization}
95 sonar.build.sourceEncoding=UTF-8
96 sonar.sources=mdclogpy
97 sonar.python.coverage.reportPaths=$TOX_DIR/coverage.xml
98 jobs:
99 - gerrit-tox-sonarqube