blob: bde20689ac76bb618499a6feeb504f24b75a6f88 [file] [log] [blame]
Lott, Christopher (cl778h)f14966f2019-06-04 10:38:14 -04001---
2- project:
3 name: ric-plt-lib-rmr-project-view
4 project-name: ric-plt-lib-rmr
5 views:
6 - project-view
7
Andrew Grimbergadf550e2019-06-11 13:40:50 -07008- project:
9 name: ric-plt-lib-rmr-info
10 project: ric-plt/lib/rmr
11 project-name: ric-plt-lib-rmr
12 build-node: centos7-builder-1c-1g
Andrew Grimbergadf550e2019-06-11 13:40:50 -070013 jobs:
14 - gerrit-info-yaml-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040015
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040016- rmr_common: &rmr_common
17 name: rmr-common
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040018 # git repo
19 project: ric-plt/lib/rmr
20 # jenkins job name prefix
21 project-name: ric-plt-lib-rmr
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040022 # maven settings file has credentials
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040023 mvn-settings: ric-plt-lib-rmr-settings
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040024 # image is not pushed, use trivial tag
25 container-tag-method: latest
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040026 # image name
27 docker-name: '{name}'
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040028 # use host network for network resources
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040029 docker-build-args: '--network=host -f ci/Dockerfile'
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040030 # exclude changes in the bindings subdirectory
31 gerrit_trigger_file_paths:
32 - compare-type: REG_EXP
33 pattern: '^((?!src/bindings|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050034
35# verify RMR changes targeted at any branch
36- project:
37 <<: *rmr_common
38 name: ric-plt-lib-rmr-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040039 jobs:
40 - gerrit-docker-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040041 stream:
E. Scott Daniels0b751402019-11-05 08:34:04 -050042 - all:
43 branch: '*'
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040044
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050045# build RMR and publish to PackageCloud.io on merge to master branch
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040046- project:
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040047 <<: *rmr_common
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050048 name: ric-plt-lib-rmr-merge
49 jobs:
50 - oran-gerrit-docker-ci-pc-merge
51 stream:
52 - master:
53 branch: master
54
55- rmr_python_common: &rmr_python_common
56 name: rmr-python-common
57 # git repo
58 project: ric-plt/lib/rmr
59 # jenkins job name prefix
Lott, Christopher (cl778h)946a3ac2019-10-29 16:40:47 -040060 project-name: ric-plt-lib-rmr-python
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050061 # maven settings file has credentials
62 mvn-settings: ric-plt-lib-rmr-settings
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040063 # sigul requires centos
64 build-node: centos7-builder-1c-1g
65 # install prereqs
66 pre-build-script: !include-raw-escape: ../shell/install-rpm-nng-rmr.sh
67 # bindings live in a subdirectory
Lott, Christopher (cl778h)62b40d52019-10-02 15:48:56 -040068 tox-dir: src/bindings/rmr-python
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040069 gerrit_trigger_file_paths:
70 - compare-type: REG_EXP
71 pattern: 'src/bindings/rmr-python/.*'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050072
73# verify binding changes targeted at any branch
74- project:
75 <<: *rmr_python_common
76 name: ric-plt-lib-rmr-python-pypi-verify
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040077 stream:
E. Scott Daniels0b751402019-11-05 08:34:04 -050078 - all:
79 branch: '*'
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040080 jobs:
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050081 - gerrit-pypi-verify
82
83# build and publish distributions to test.pypi.org from master
84- project:
85 <<: *rmr_python_common
86 name: ric-plt-lib-rmr-python-pypi-merge
87 stream:
88 - master:
89 branch: master
90 jobs:
91 - gerrit-pypi-verify
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -040092
Lott, Christopher (cl778h)946a3ac2019-10-29 16:40:47 -040093# promote distributions from test to pypi.org
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -040094- project:
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050095 <<: *rmr_python_common
Lott, Christopher (cl778h)946a3ac2019-10-29 16:40:47 -040096 name: ric-plt-lib-rmr-python-pypi-release
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -040097 jobs:
Lott, Christopher (cl778h)946a3ac2019-10-29 16:40:47 -040098 - '{project-name}-gerrit-pypi-release-jobs'
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -040099
100- project:
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500101 <<: *rmr_python_common
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400102 name: ric-plt-lib-rmr-python-sonar
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400103 branch: master
104 python-version: python3
105 # the pre-build-script installs debian packages
Andrew Grimberg6548e342019-10-31 09:28:26 -0700106 build-node: ubuntu1804-builder-2c-2g
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400107 # install prereqs
108 pre-build-script: !include-raw-escape: ../shell/install-deb-nng-rmr.sh
109 sonarcloud: true
110 sonarcloud-api-token: '{sonarcloud_api_token}'
111 sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
112 sonarcloud-project-organization: '{sonarcloud_project_organization}'
113 tox-dir: src/bindings/rmr-python
114 jobs:
115 - gerrit-tox-sonar