Prepare job for xapp-frame-py
[ci-management.git] / jjb / ric-plt-xapp-frame-py / ric-plt-xapp-frame-py.yaml
1 ---
2 - project:
3     name: ric-plt-xapp-frame-py-project-view
4     project-name: ric-plt-xapp-frame-py
5     views:
6       - project-view
7
8 - project:
9     name: ric-plt-xapp-frame-py-info
10     project: ric-plt/xapp-frame-py
11     project-name: ric-plt-xapp-frame-py
12     build-node: centos7-builder-1c-1g
13     jobs:
14       - gerrit-info-yaml-verify
15
16 - py_common: &py_common
17     name: xapp-frame-py-common
18     # git repo
19     project: ric-plt/xapp-frame-py
20     # jenkins job name prefix
21     project-name: ric-plt-xapp-frame-py
22     # maven settings file has credentials
23     mvn-settings: ric-plt-xapp-frame-py-settings
24
25 # verify distribution and publish to test.pypi.org
26 - project:
27     name: ric-plt-xapp-frame-py-pypi
28     <<: *py_common
29     jobs:
30       - '{project-name}-gerrit-pypi-jobs'
31     stream:
32       - master:
33           branch: master
34
35 # promote distribution from test.pypi.org to pypi.org
36 - project:
37     name: ric-plt-xapp-frame-py-release
38     <<: *py_common
39     # maven release requires sigul which requires centos
40     build-node: centos7-builder-1c-1g
41     jobs:
42       - '{project-name}-gerrit-pypi-release-jobs'
43
44 # analyze unit test coverage
45 - project:
46     name: ric-plt-xapp-frame-py-sonar
47     <<: *py_common
48     python-version: python3
49     # the install script assumes an ubuntu image
50     build-node: ubuntu1804-builder-2c-2g
51     pre-build-script: !include-raw-escape:
52       - ../shell/install-deb-nng-rmr.sh
53     sonarcloud: true
54     sonarcloud-api-token: '{sonarcloud_api_token}'
55     sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
56     sonarcloud-project-organization: '{sonarcloud_project_organization}'
57     jobs:
58       - gerrit-tox-sonar