From a72e235016b7b69e3096031965be15570c671e41 Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Mon, 24 Feb 2020 14:38:36 -0500 Subject: [PATCH] Prepare job for xapp-frame-py This is a hodgepodge of a1 and sdlpy; may need some lovin, most of the confusion is around this requires this builder and this requires that builder and this can use the default etc etc a list of what each builder has or what each thing needs would go a long way Change-Id: Iedb9e12fd19fcad231a7003353e8b89869d4381d Signed-off-by: Tommy Carpenter --- jjb/ric-plt-a1/ric-plt-a1.yaml | 1 - .../ric-plt-xapp-frame-py.yaml | 58 ++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml diff --git a/jjb/ric-plt-a1/ric-plt-a1.yaml b/jjb/ric-plt-a1/ric-plt-a1.yaml index 6d22ad7c..80a9262b 100644 --- a/jjb/ric-plt-a1/ric-plt-a1.yaml +++ b/jjb/ric-plt-a1/ric-plt-a1.yaml @@ -58,7 +58,6 @@ - project: <<: *a1_common name: ric-plt-a1-sonar - branch: master python-version: python3 # the install script assumes an ubuntu image build-node: ubuntu1804-builder-2c-2g 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 new file mode 100644 index 00000000..2faa2c3f --- /dev/null +++ b/jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml @@ -0,0 +1,58 @@ +--- +- project: + name: ric-plt-xapp-frame-py-project-view + project-name: ric-plt-xapp-frame-py + 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 + name: xapp-frame-py-common + # git repo + project: ric-plt/xapp-frame-py + # jenkins job name prefix + project-name: ric-plt-xapp-frame-py + # maven settings file has credentials + mvn-settings: ric-plt-xapp-frame-py-settings + +# verify distribution and publish to test.pypi.org +- project: + name: ric-plt-xapp-frame-py-pypi + <<: *py_common + jobs: + - '{project-name}-gerrit-pypi-jobs' + stream: + - master: + branch: master + +# promote distribution from test.pypi.org to pypi.org +- project: + name: ric-plt-xapp-frame-py-release + <<: *py_common + # maven release requires sigul which requires centos + build-node: centos7-builder-1c-1g + jobs: + - '{project-name}-gerrit-pypi-release-jobs' + +# analyze unit test coverage +- project: + name: ric-plt-xapp-frame-py-sonar + <<: *py_common + python-version: python3 + # the install script assumes an ubuntu image + build-node: ubuntu1804-builder-2c-2g + pre-build-script: !include-raw-escape: + - ../shell/install-deb-nng-rmr.sh + sonarcloud: true + sonarcloud-api-token: '{sonarcloud_api_token}' + sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}' + sonarcloud-project-organization: '{sonarcloud_project_organization}' + jobs: + - gerrit-tox-sonar -- 2.16.6