blob: 8323ca760d281258bc372803e096e68c69b9ec25 [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
Anil Belur4e0d56a2023-04-18 11:49:03 +10008- _pylog_common: &pylog_common
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -04009 name: pylog-common
10 # git repo
11 project: com/pylog
12 # jenkins job name prefix
13 project-name: com-pylog
14 # maven settings file has docker credentials
15 mvn-settings: com-pylog-settings
16 # sigul requires centos
17 build-node: centos7-builder-1c-1g
18
19# build package and publish to test.pypi.org
20- project:
21 <<: *pylog_common
22 name: pylog-pypi
Lott, Christopher (cl778h)696a5dc2019-11-06 09:34:14 -050023 # the code is in a subdirectory
24 tox-dir: mdclogpy
wahidw95b647d2020-11-06 04:37:40 +000025 gerrit_trigger_file_paths:
26 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100027 pattern: "mdclogpy/.*"
wahidw95b647d2020-11-06 04:37:40 +000028 stream:
29 - master:
30 branch: master
31 jobs:
32 - gerrit-pypi-verify
Aric Gardnerca02d1a2021-06-04 11:35:55 -040033 - gerrit-pypi-merge
wahidw95b647d2020-11-06 04:37:40 +000034 - gerrit-pypi-stage
Alok Bhattd385a322020-09-21 06:17:20 +000035
36- project:
37 <<: *pylog_common
38 name: com-pylog-docker
39 # image name
40 docker-name: o-ran-sc/com-pylog
41 # source of docker tag
42 container-tag-method: yaml-file
43 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100044 docker-build-args: "--network=host"
Alok Bhattd385a322020-09-21 06:17:20 +000045 build-node: centos7-docker-2c-8g
46 # do not trigger on changes in docs, releases
47
Anil Belur439502c2023-05-07 12:39:38 +100048- _pylog_python: &pylog_python # settings for python builds
Alok Bhattd385a322020-09-21 06:17:20 +000049 name: com-pylog-python
50 # the install script assumes an ubuntu image
51 build-node: ubuntu1804-builder-2c-2g
52 # impt for verify and tox etc
53 python-version: python3
54 # no need to verify docs
55 tox-envs: py3
56 tox-dir: mdclogpy
57
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040058# promote package from test.pypi.org to pypi.org
59- project:
Alok Bhattd385a322020-09-21 06:17:20 +000060 <<: *pylog_python
Aric Gardnerca02d1a2021-06-04 11:35:55 -040061 <<: *pylog_common
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040062 name: pylog-pypi-release
Alok Bhattd385a322020-09-21 06:17:20 +000063 # do not trigger on changes in docs, releases
64 gerrit_trigger_file_paths:
Eric Ball30c5fff2020-12-15 08:07:57 -080065 - compare-type: REG_EXP
66 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)64c49b32019-11-01 09:04:33 -040067 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100068 - "{project-name}-gerrit-pypi-release-jobs"
Alok Bhattd385a322020-09-21 06:17:20 +000069 - gerrit-tox-verify
70 stream:
71 - master:
72 branch: master
73
74- project:
75 <<: *pylog_common
76 <<: *pylog_python
77 name: com-pylog-sonarqube
78 sonar-project-file: ""
79 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100080 sonar.login={sonarcloud_api_token}
81 sonar.projectKey={sonarcloud_project_organization}_{project-name}
82 sonar.projectName={project-name}
83 sonar.organization={sonarcloud_project_organization}
84 sonar.build.sourceEncoding=UTF-8
85 sonar.sources=mdclogpy
86 sonar.python.coverage.reportPaths=$TOX_DIR/coverage.xml
Alok Bhattd385a322020-09-21 06:17:20 +000087 jobs:
88 - gerrit-tox-sonarqube