blob: 9e98d303e100018d3239e73d41bb0a8709dadf4d [file] [log] [blame]
Anil Belur19931f12021-06-24 08:24:24 +10001---
2- project:
pceicicdeca6cd22021-06-24 13:04:45 +00003 name: ric-app-lp-project-view
4 project-name: ric-app-lp
Anil Belur19931f12021-06-24 08:24:24 +10005 views:
6 - project-view
7
pceicicdeca6cd22021-06-24 13:04:45 +00008- lp_common: &lp_common
Anil Belur19931f12021-06-24 08:24:24 +10009 # required even though overridden everywhere
pceicicdeca6cd22021-06-24 13:04:45 +000010 name: lp-common
Anil Belur19931f12021-06-24 08:24:24 +100011 # git repo
pceicicdeca6cd22021-06-24 13:04:45 +000012 project: ric-app/lp
Anil Belur19931f12021-06-24 08:24:24 +100013 # jenkins job name prefix
pceicicdeca6cd22021-06-24 13:04:45 +000014 project-name: ric-app-lp
Anil Belur19931f12021-06-24 08:24:24 +100015 # maven settings file has docker credentials
pceicicdeca6cd22021-06-24 13:04:45 +000016 mvn-settings: ric-app-lp-settings
Anil Belur19931f12021-06-24 08:24:24 +100017
18- project:
pceicicdeca6cd22021-06-24 13:04:45 +000019 <<: *lp_common
20 name: ric-app-lp-info
Anil Belur19931f12021-06-24 08:24:24 +100021 build-node: centos7-builder-1c-1g
22 jobs:
23 - gerrit-info-yaml-verify
24
25- project:
pceicicdeca6cd22021-06-24 13:04:45 +000026 <<: *lp_common
27 name: ric-app-lp-docker
Anil Belur19931f12021-06-24 08:24:24 +100028 # image name
pceicicdeca6cd22021-06-24 13:04:45 +000029 docker-name: o-ran-sc/ric-app-lp
Anil Belur19931f12021-06-24 08:24:24 +100030 # source of docker tag
31 container-tag-method: yaml-file
32 # use host network
33 docker-build-args: '--network=host'
34 build-node: ubuntu1804-docker-4c-4g
35 # do not trigger on changes in docs, releases
36 gerrit_trigger_file_paths:
37 - compare-type: REG_EXP
38 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
39 jobs:
40 - '{project-name}-gerrit-docker-jobs'
41 stream:
42 - master:
43 branch: master
44
45- project:
pceicicdeca6cd22021-06-24 13:04:45 +000046 <<: *lp_common
47 name: ric-app-lp-release
Anil Belur19931f12021-06-24 08:24:24 +100048 # maven release requires sigul which requires centos
49 # container release requires docker
50 build-node: centos7-docker-2c-8g
51 jobs:
52 - '{project-name}-gerrit-release-jobs'
53
pceicicdeca6cd22021-06-24 13:04:45 +000054- lp_python: &lp_python
Anil Belur19931f12021-06-24 08:24:24 +100055 # settings for python builds
pceicicdeca6cd22021-06-24 13:04:45 +000056 name: lp-python
Anil Belur19931f12021-06-24 08:24:24 +100057 # the install script assumes an ubuntu image
58 build-node: ubuntu1804-builder-2c-2g
59 pre-build-script: !include-raw-escape:
60 - ../shell/install-deb-rmr.sh
61 # impt for verify and tox etc
62 python-version: python3
63 # no need to verify docs
64 tox-envs: code,flake8
65
66- project:
pceicicdeca6cd22021-06-24 13:04:45 +000067 <<: *lp_common
68 <<: *lp_python
69 name: ric-app-lp-py-verify
Anil Belur19931f12021-06-24 08:24:24 +100070 # do not trigger on changes in docs, releases
71 gerrit_trigger_file_paths:
72 - compare-type: REG_EXP
73 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
74 jobs:
75 - gerrit-tox-verify
76 stream:
77 - master:
78 branch: master
79
80- project:
pceicicdeca6cd22021-06-24 13:04:45 +000081 <<: *lp_common
82 <<: *lp_python
83 name: ric-app-lp-sonarqube
Anil Belur19931f12021-06-24 08:24:24 +100084 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
pceicicdeca6cd22021-06-24 13:04:45 +000091 sonar.sources=lp
Anil Belur19931f12021-06-24 08:24:24 +100092 sonar.python.coverage.reportPaths=coverage.xml
93 jobs:
94 - gerrit-tox-sonarqube