Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 1 | --- |
| 2 | - project: |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 3 | name: ric-app-lp-project-view |
| 4 | project-name: ric-app-lp |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 5 | views: |
| 6 | - project-view |
| 7 | |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 8 | - lp_common: &lp_common |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 9 | # required even though overridden everywhere |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 10 | name: lp-common |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 11 | # git repo |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 12 | project: ric-app/lp |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 13 | # jenkins job name prefix |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 14 | project-name: ric-app-lp |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 15 | # maven settings file has docker credentials |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 16 | mvn-settings: ric-app-lp-settings |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 17 | |
| 18 | - project: |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 19 | <<: *lp_common |
| 20 | name: ric-app-lp-info |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 21 | build-node: centos7-builder-1c-1g |
| 22 | jobs: |
| 23 | - gerrit-info-yaml-verify |
| 24 | |
| 25 | - project: |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 26 | <<: *lp_common |
| 27 | name: ric-app-lp-docker |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 28 | # image name |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 29 | docker-name: o-ran-sc/ric-app-lp |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 30 | # 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: |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 46 | <<: *lp_common |
| 47 | name: ric-app-lp-release |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 48 | # 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 | |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 54 | - lp_python: &lp_python |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 55 | # settings for python builds |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 56 | name: lp-python |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 57 | # 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: |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 67 | <<: *lp_common |
| 68 | <<: *lp_python |
| 69 | name: ric-app-lp-py-verify |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 70 | # 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: |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 81 | <<: *lp_common |
| 82 | <<: *lp_python |
| 83 | name: ric-app-lp-sonarqube |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 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 |
pceicicd | eca6cd2 | 2021-06-24 13:04:45 +0000 | [diff] [blame] | 91 | sonar.sources=lp |
Anil Belur | 19931f1 | 2021-06-24 08:24:24 +1000 | [diff] [blame] | 92 | sonar.python.coverage.reportPaths=coverage.xml |
| 93 | jobs: |
| 94 | - gerrit-tox-sonarqube |