Automation adds ric-app-ric-sdk-py.yaml
[ci-management.git] / jjb / ric-plt-a1 / ric-plt-a1.yaml
1 ---
2 - project:
3     name: ric-plt-a1-project-view
4     project-name: ric-plt-a1
5     views:
6       - project-view
7
8 - project:
9     name: ric-plt-a1-info
10     project: ric-plt/a1
11     project-name: ric-plt-a1
12     build-node: centos7-builder-1c-1g
13     jobs:
14       - gerrit-info-yaml-verify
15
16 - a1_common: &a1_common
17     # values apply to all A1 projects
18     name: a1-common
19     # git repo
20     project: ric-plt/a1
21     # jenkins job name prefix
22     project-name: ric-plt-a1
23     # maven settings file has docker credentials
24     mvn-settings: ric-plt-a1-settings
25
26 - project:
27     <<: *a1_common
28     name: ric-plt-a1-docker
29     # image name
30     docker-name: 'o-ran-sc/ric-plt-a1'
31     # source of docker tag
32     container-tag-method: yaml-file
33     # use host network
34     docker-build-args: '--network=host'
35     build-node: ubuntu1804-docker-4c-4g
36     # do not trigger on changes in docs, releases
37     gerrit_trigger_file_paths:
38         - compare-type: REG_EXP
39           pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
40     stream:
41       - master:
42           branch: master
43     jobs:
44       - '{project-name}-gerrit-docker-jobs'
45
46 - project:
47     <<: *a1_common
48     name: ric-plt-a1-verify
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-rmr.sh
53     python-version: python3
54     # skip docs on verify
55     tox-envs: code,flake8
56     # do not trigger on changes in docs, releases
57     gerrit_trigger_file_paths:
58         - compare-type: REG_EXP
59           pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
60     stream:
61       # run verify on all branches
62       # the ANT pattern is **/{branch}, we are exploiting that.
63       - all:
64           branch: '*'
65     jobs:
66       - gerrit-tox-verify
67
68 - project:
69     <<: *a1_common
70     name: ric-plt-a1-nexus-iq
71     build-node: centos7-builder-1c-1g
72     nexus-iq-namespace: oran-
73     jobs:
74       - gerrit-tox-nexus-iq-clm
75
76 - project:
77     <<: *a1_common
78     name: ric-plt-a1-sonarqube
79     python-version: python3
80     # the install script assumes an ubuntu image
81     build-node: ubuntu1804-builder-2c-2g
82     pre-build-script: !include-raw-escape:
83       - ../shell/install-deb-rmr.sh
84     sonar-project-file: ""
85     sonar-properties: |
86         sonar.login={sonarcloud_api_token}
87         sonar.projectKey={sonarcloud_project_organization}_{project-name}
88         sonar.projectName={project-name}
89         sonar.organization={sonarcloud_project_organization}
90         sonar.build.sourceEncoding=UTF-8
91         sonar.sources=a1
92         sonar.python.coverage.reportPaths=coverage.xml
93     jobs:
94       - gerrit-tox-sonarqube
95
96 - project:
97     <<: *a1_common
98     name: ric-plt-a1-release
99     # maven release requires sigul which requires centos
100     # container release requires docker
101     build-node: centos7-docker-2c-8g
102     jobs:
103       - '{project-name}-gerrit-release-jobs'