blob: 6d3aa1c803cb320a22f99734ec8fe22f3ca413ff [file] [log] [blame]
LF Jenkins CIc373ae32020-08-18 14:11:41 +00001---
2- project:
3 name: ric-app-ad-project-view
4 project-name: ric-app-ad
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _ad_common: &ad_common # required even though overridden everywhere
Alok Bhatt53efacf2020-12-11 16:47:02 +00009 name: ad-common
10 # git repo
LF Jenkins CIc373ae32020-08-18 14:11:41 +000011 project: ric-app/ad
Alok Bhatt53efacf2020-12-11 16:47:02 +000012 # jenkins job name prefix
LF Jenkins CIc373ae32020-08-18 14:11:41 +000013 project-name: ric-app-ad
Alok Bhatt53efacf2020-12-11 16:47:02 +000014 # maven settings file has docker credentials
15 mvn-settings: ric-app-ad-settings
16
17- project:
18 <<: *ad_common
Alok Bhatt53efacf2020-12-11 16:47:02 +000019 name: ric-app-ad-docker
20 # image name
21 docker-name: o-ran-sc/ric-app-ad
22 # source of docker tag
23 container-tag-method: yaml-file
24 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100025 docker-build-args: "--network=host"
Alok Bhatt53efacf2020-12-11 16:47:02 +000026 build-node: ubuntu1804-docker-4c-4g
27 # do not trigger on changes in docs, releases
28 gerrit_trigger_file_paths:
Anil Belur439502c2023-05-07 12:39:38 +100029 - compare-type: REG_EXP
30 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Alok Bhatt53efacf2020-12-11 16:47:02 +000031 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100032 - "{project-name}-gerrit-docker-jobs"
Alok Bhatt53efacf2020-12-11 16:47:02 +000033 stream:
34 - master:
35 branch: master
36
37- project:
38 <<: *ad_common
39 name: ric-app-ad-release
40 # maven release requires sigul which requires centos
41 # container release requires docker
42 build-node: centos7-docker-2c-8g
43 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100044 - "{project-name}-gerrit-release-jobs"
Alok Bhatt53efacf2020-12-11 16:47:02 +000045
Anil Belur439502c2023-05-07 12:39:38 +100046- _ad_python: &ad_python # settings for python builds
Alok Bhatt53efacf2020-12-11 16:47:02 +000047 name: ad-python
48 # the install script assumes an ubuntu image
49 build-node: ubuntu1804-builder-2c-2g
50 pre-build-script: !include-raw-escape:
51 - ../shell/install-deb-rmr.sh
52 # impt for verify and tox etc
53 python-version: python3
54 # no need to verify docs
55 tox-envs: code,flake8
56
57- project:
58 <<: *ad_common
59 <<: *ad_python
60 name: ric-app-ad-py-verify
61 # do not trigger on changes in docs, releases
62 gerrit_trigger_file_paths:
Anil Belur439502c2023-05-07 12:39:38 +100063 - compare-type: REG_EXP
64 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Alok Bhatt53efacf2020-12-11 16:47:02 +000065 jobs:
66 - gerrit-tox-verify
67 stream:
68 - master:
69 branch: master
70
71- project:
72 <<: *ad_common
73 <<: *ad_python
74 name: ric-app-ad-sonarqube
75 sonar-project-file: ""
76 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100077 sonar.login={sonarcloud_api_token}
78 sonar.projectKey={sonarcloud_project_organization}_{project-name}
79 sonar.projectName={project-name}
80 sonar.organization={sonarcloud_project_organization}
81 sonar.build.sourceEncoding=UTF-8
82 sonar.sources=ad
83 sonar.python.coverage.reportPaths=coverage.xml
Alok Bhatt53efacf2020-12-11 16:47:02 +000084 jobs:
85 - gerrit-tox-sonarqube