X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-plt-xapp-frame-py%2Fric-plt-xapp-frame-py.yaml;h=37d4a0ecfd0f1427ae2d46192ae7b6b4c81f294c;hb=78ce966dfb4b3818a725d12b7e58d994e7518291;hp=e48fbf1135b0673321d318036302fff9c6e95ba8;hpb=514675ec0b2fc59d9ddcc68334a284edcc173df2;p=ci-management.git diff --git a/jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml b/jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml index e48fbf11..37d4a0ec 100644 --- a/jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml +++ b/jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml @@ -5,15 +5,7 @@ views: - project-view -- project: - name: ric-plt-xapp-frame-py-info - project: ric-plt/xapp-frame-py - project-name: ric-plt-xapp-frame-py - build-node: centos7-builder-1c-1g - jobs: - - gerrit-info-yaml-verify - -- py_common: &py_common +- _py_common: &py_common name: xapp-frame-py-common # git repo project: ric-plt/xapp-frame-py @@ -25,34 +17,51 @@ tox-envs: code,flake8 build-node: ubuntu1804-builder-2c-2g pre-build-script: !include-raw-escape: - - ../shell/install-deb-nng-rmr.sh + - ../shell/install-deb-rmr.sh + - ../shell/install-deb-e2ap.sh -# verify distribution and publish to test.pypi.org - project: name: ric-plt-xapp-frame-py-pypi <<: *py_common + # do not trigger on changes in docs, releases + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' jobs: - - '{project-name}-gerrit-pypi-jobs' + - gerrit-pypi-verify + - gerrit-pypi-stage stream: - master: branch: master -# promote distribution from test.pypi.org to pypi.org - project: name: ric-plt-xapp-frame-py-release <<: *py_common # release requires sigul which requires centos build-node: centos7-builder-1c-1g jobs: - - '{project-name}-gerrit-pypi-release-jobs' + - "{project-name}-gerrit-pypi-release-jobs" -# analyze unit test coverage - project: - name: ric-plt-xapp-frame-py-sonar + name: ric-plt-xapp-frame-py-sonarqube <<: *py_common - sonarcloud: true - sonarcloud-api-token: '{sonarcloud_api_token}' - sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}' - sonarcloud-project-organization: '{sonarcloud_project_organization}' + sonar-project-file: "" + sonar-properties: | + sonar.login={sonarcloud_api_token} + sonar.projectKey={sonarcloud_project_organization}_{project-name} + sonar.projectName={project-name} + sonar.organization={sonarcloud_project_organization} + sonar.build.sourceEncoding=UTF-8 + sonar.sources=ricxappframe + sonar.exclusions=setup.py,tests/*.py + sonar.python.coverage.reportPaths=coverage.xml + jobs: + - gerrit-tox-sonarqube + +- project: + <<: *py_common + name: ric-plt-xapp-frame-py-nexus-iq + build-node: centos7-builder-1c-1g + nexus-iq-namespace: oran- jobs: - - gerrit-tox-sonar + - gerrit-tox-nexus-iq-clm