blob: 115b624921abfcc995ddeb0bc6f27f94a1d4d045 [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
wahidw95b647d2020-11-06 04:37:40 +000033 gerrit_trigger_file_paths:
34 - compare-type: REG_EXP
35 pattern: 'mdclogpy/.*'
36 stream:
37 - master:
38 branch: master
39 jobs:
40 - gerrit-pypi-verify
Aric Gardnerca02d1a2021-06-04 11:35:55 -040041 - gerrit-pypi-merge
wahidw95b647d2020-11-06 04:37:40 +000042 - gerrit-pypi-stage
Alok Bhattd385a322020-09-21 06:17:20 +000043
44- project:
45 <<: *pylog_common
46 name: com-pylog-docker
47 # image name
48 docker-name: o-ran-sc/com-pylog
49 # source of docker tag
50 container-tag-method: yaml-file
51 # use host network
52 docker-build-args: '--network=host'
53 build-node: centos7-docker-2c-8g
54 # do not trigger on changes in docs, releases
55
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040056
Alok Bhattd385a322020-09-21 06:17:20 +000057- pylog_python: &pylog_python
58 # settings for python builds
59 name: com-pylog-python
60 # the install script assumes an ubuntu image
61 build-node: ubuntu1804-builder-2c-2g
62 # impt for verify and tox etc
63 python-version: python3
64 # no need to verify docs
65 tox-envs: py3
66 tox-dir: mdclogpy
67
68
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040069# promote package from test.pypi.org to pypi.org
70- project:
Alok Bhattd385a322020-09-21 06:17:20 +000071 <<: *pylog_python
Aric Gardnerca02d1a2021-06-04 11:35:55 -040072 <<: *pylog_common
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040073 name: pylog-pypi-release
Alok Bhattd385a322020-09-21 06:17:20 +000074 # do not trigger on changes in docs, releases
75 gerrit_trigger_file_paths:
Eric Ball30c5fff2020-12-15 08:07:57 -080076 - compare-type: REG_EXP
77 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040078 jobs:
79 - '{project-name}-gerrit-pypi-release-jobs'
Alok Bhattd385a322020-09-21 06:17:20 +000080 - 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