7c74a02e15be6d482d425b9015e2152031ffdcad
[ci-management.git] / ric-app-qp-driver.yaml
1 ---
2 - project:
3     name: ric-app-qp-driver-project-view
4     project-name: ric-app-qp-driver
5     views:
6       - project-view
7
8 - qpd_common: &qpd_common
9     # required even though overridden everywhere
10     name: qpdcommon
11     # git repo
12     project: ric-app/qp-driver
13     # jenkins job name prefix
14     project-name: ric-app-qp-driver
15     # maven settings file has docker credentials
16     mvn-settings: ric-app-qp-driver-settings
17
18 - qpd_python: &qpd_python
19     # installs rmr which is needed for verify and sonar etc
20     name: qpdpy
21     # the install script assumes an ubuntu image
22     build-node: ubuntu1804-builder-2c-2g
23     pre-build-script: !include-raw-escape:
24       - ../shell/install-deb-nng-rmr.sh
25     # impt for verify and tox etc
26     python-version: python3
27     # no need to verify docs
28     tox-envs: code,flake8
29
30 - project:
31     <<: *qpd_common
32     name: ric-app-qp-driver-info
33     build-node: centos7-builder-1c-1g
34     jobs:
35       - gerrit-info-yaml-verify
36
37 - project:
38     <<: *qpd_common
39     name: ric-app-qp-driver-docker
40     # image name
41     docker-name: 'o-ran-sc/{name}'
42     # source of docker tag
43     container-tag-method: yaml-file
44     # use host network
45     docker-build-args: '--network=host'
46     build-node: ubuntu1804-docker-4c-4g
47     jobs:
48       - '{project-name}-gerrit-docker-jobs'
49     stream:
50       - master:
51           branch: master
52
53 - project:
54     <<: *qpd_common
55     <<: *qpd_python
56     name: ric-app-qp-driver-verify
57     jobs:
58       - gerrit-tox-verify
59     stream:
60       # run verify on all branches
61       # the ANT pattern is **/{branch}, we are exploiting that.
62       - all:
63           branch: '*'
64
65 - project:
66     <<: *qpd_common
67     name: ric-app-qp-driver-release
68     # maven release requires sigul which requires centos
69     # container release requires docker
70     build-node: centos7-docker-2c-8g
71     jobs:
72       - '{project-name}-gerrit-release-jobs'
73
74 - project:
75     <<: *qpd_common
76     <<: *qpd_python
77     name: ric-app-qp-driver-sonarqube
78     sonar-project-file: ""
79     sonar-properties: |
80         sonar.login={sonarcloud_api_token}
81         sonar.projectKey={sonarcloud_project_organization}_{project-name}
82         sonar.projectName={project-name}
83         sonar.organization={sonarcloud_project_organization}
84         sonar.build.sourceEncoding=UTF-8
85         sonar.sources=qpdriver
86         sonar.python.coverage.reportPaths=coverage.xml
87     jobs:
88       - gerrit-tox-sonarqube