LF Jenkins CI | c373ae3 | 2020-08-18 14:11:41 +0000 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: ric-app-ad-project-view |
| 4 | project-name: ric-app-ad |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 8 | - _ad_common: &ad_common # required even though overridden everywhere |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 9 | name: ad-common |
| 10 | # git repo |
LF Jenkins CI | c373ae3 | 2020-08-18 14:11:41 +0000 | [diff] [blame] | 11 | project: ric-app/ad |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 12 | # jenkins job name prefix |
LF Jenkins CI | c373ae3 | 2020-08-18 14:11:41 +0000 | [diff] [blame] | 13 | project-name: ric-app-ad |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 14 | # maven settings file has docker credentials |
| 15 | mvn-settings: ric-app-ad-settings |
| 16 | |
| 17 | - project: |
| 18 | <<: *ad_common |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 19 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 25 | docker-build-args: "--network=host" |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 26 | build-node: ubuntu1804-docker-4c-4g |
| 27 | # do not trigger on changes in docs, releases |
| 28 | gerrit_trigger_file_paths: |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 29 | - compare-type: REG_EXP |
| 30 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 31 | jobs: |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 32 | - "{project-name}-gerrit-docker-jobs" |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 33 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 44 | - "{project-name}-gerrit-release-jobs" |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 45 | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 46 | - _ad_python: &ad_python # settings for python builds |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 47 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 63 | - compare-type: REG_EXP |
| 64 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Alok Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 65 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 77 | 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 Bhatt | 53efacf | 2020-12-11 16:47:02 +0000 | [diff] [blame] | 84 | jobs: |
| 85 | - gerrit-tox-sonarqube |