Lott, Christopher (cl778h) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: com-pylog-project-view |
| 4 | project-name: com-pylog |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Anil Belur | 4e0d56a | 2023-04-18 11:49:03 +1000 | [diff] [blame] | 8 | - _pylog_common: &pylog_common |
Lott, Christopher (cl778h) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 9 | 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) | 696a5dc | 2019-11-06 09:34:14 -0500 | [diff] [blame] | 23 | # the code is in a subdirectory |
| 24 | tox-dir: mdclogpy |
wahidw | 95b647d | 2020-11-06 04:37:40 +0000 | [diff] [blame] | 25 | gerrit_trigger_file_paths: |
| 26 | - compare-type: REG_EXP |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 27 | pattern: "mdclogpy/.*" |
wahidw | 95b647d | 2020-11-06 04:37:40 +0000 | [diff] [blame] | 28 | stream: |
| 29 | - master: |
| 30 | branch: master |
| 31 | jobs: |
| 32 | - gerrit-pypi-verify |
Aric Gardner | ca02d1a | 2021-06-04 11:35:55 -0400 | [diff] [blame] | 33 | - gerrit-pypi-merge |
wahidw | 95b647d | 2020-11-06 04:37:40 +0000 | [diff] [blame] | 34 | - gerrit-pypi-stage |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 35 | |
| 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 44 | docker-build-args: "--network=host" |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 45 | build-node: centos7-docker-2c-8g |
| 46 | # do not trigger on changes in docs, releases |
| 47 | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 48 | - _pylog_python: &pylog_python # settings for python builds |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 49 | 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) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 58 | # promote package from test.pypi.org to pypi.org |
| 59 | - project: |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 60 | <<: *pylog_python |
Aric Gardner | ca02d1a | 2021-06-04 11:35:55 -0400 | [diff] [blame] | 61 | <<: *pylog_common |
Lott, Christopher (cl778h) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 62 | name: pylog-pypi-release |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 63 | # do not trigger on changes in docs, releases |
| 64 | gerrit_trigger_file_paths: |
Eric Ball | 30c5fff | 2020-12-15 08:07:57 -0800 | [diff] [blame] | 65 | - compare-type: REG_EXP |
| 66 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Lott, Christopher (cl778h) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 67 | jobs: |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 68 | - "{project-name}-gerrit-pypi-release-jobs" |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 69 | - 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 80 | 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 Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 87 | jobs: |
| 88 | - gerrit-tox-sonarqube |