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 | |
| 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) | 696a5dc | 2019-11-06 09:34:14 -0500 | [diff] [blame] | 31 | # the code is in a subdirectory |
| 32 | tox-dir: mdclogpy |
wahidw | 95b647d | 2020-11-06 04:37:40 +0000 | [diff] [blame] | 33 | 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 Gardner | ca02d1a | 2021-06-04 11:35:55 -0400 | [diff] [blame] | 41 | - gerrit-pypi-merge |
wahidw | 95b647d | 2020-11-06 04:37:40 +0000 | [diff] [blame] | 42 | - gerrit-pypi-stage |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 43 | |
| 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) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 56 | |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 57 | - 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) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 69 | # promote package from test.pypi.org to pypi.org |
| 70 | - project: |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 71 | <<: *pylog_python |
Aric Gardner | ca02d1a | 2021-06-04 11:35:55 -0400 | [diff] [blame] | 72 | <<: *pylog_common |
Lott, Christopher (cl778h) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 73 | name: pylog-pypi-release |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 74 | # do not trigger on changes in docs, releases |
| 75 | gerrit_trigger_file_paths: |
Eric Ball | 30c5fff | 2020-12-15 08:07:57 -0800 | [diff] [blame] | 76 | - compare-type: REG_EXP |
| 77 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Lott, Christopher (cl778h) | 64c49b3 | 2019-11-01 09:04:33 -0400 | [diff] [blame] | 78 | jobs: |
| 79 | - '{project-name}-gerrit-pypi-release-jobs' |
Alok Bhatt | d385a32 | 2020-09-21 06:17:20 +0000 | [diff] [blame] | 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 |