LF Jenkins CI | 717b341 | 2020-03-11 17:04:42 +0000 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: ric-app-qp-driver-project-view |
| 4 | project-name: ric-app-qp-driver |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 8 | - qpd_common: &qpd_common |
| 9 | # required even though overridden everywhere |
| 10 | name: qpdcommon |
| 11 | # git repo |
LF Jenkins CI | 717b341 | 2020-03-11 17:04:42 +0000 | [diff] [blame] | 12 | project: ric-app/qp-driver |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 13 | # jenkins job name prefix |
LF Jenkins CI | 717b341 | 2020-03-11 17:04:42 +0000 | [diff] [blame] | 14 | project-name: ric-app-qp-driver |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 15 | # maven settings file has docker credentials |
| 16 | mvn-settings: ric-app-qp-driver-settings |
| 17 | |
| 18 | - qpd_python: &qpd_python |
| 19 | # installs rmr which is needed for verify and sonar etc |
| 20 | name: qpdpy |
| 21 | # the install script assumes an ubuntu image |
| 22 | build-node: ubuntu1804-builder-2c-2g |
| 23 | pre-build-script: !include-raw-escape: |
Lott, Christopher (cl778h) | 18c7159 | 2020-04-27 17:46:12 -0400 | [diff] [blame] | 24 | - ../shell/install-deb-rmr.sh |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 25 | # impt for verify and tox etc |
| 26 | python-version: python3 |
| 27 | # no need to verify docs |
| 28 | tox-envs: code,flake8 |
| 29 | |
| 30 | - project: |
| 31 | <<: *qpd_common |
| 32 | name: ric-app-qp-driver-info |
LF Jenkins CI | 717b341 | 2020-03-11 17:04:42 +0000 | [diff] [blame] | 33 | build-node: centos7-builder-1c-1g |
| 34 | jobs: |
| 35 | - gerrit-info-yaml-verify |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 36 | |
| 37 | - project: |
| 38 | <<: *qpd_common |
| 39 | name: ric-app-qp-driver-docker |
| 40 | # image name |
Tommy Carpenter | 0ade1e6 | 2020-04-03 14:30:45 -0400 | [diff] [blame] | 41 | docker-name: 'o-ran-sc/ric-app-qp-driver' |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 42 | # source of docker tag |
| 43 | container-tag-method: yaml-file |
| 44 | # use host network |
| 45 | docker-build-args: '--network=host' |
| 46 | build-node: ubuntu1804-docker-4c-4g |
Lott, Christopher (cl778h) | f368f98 | 2020-06-03 14:20:27 -0400 | [diff] [blame] | 47 | # do not trigger on changes in docs, releases |
| 48 | gerrit_trigger_file_paths: |
| 49 | - compare-type: REG_EXP |
| 50 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 51 | jobs: |
| 52 | - '{project-name}-gerrit-docker-jobs' |
| 53 | stream: |
| 54 | - master: |
| 55 | branch: master |
| 56 | |
| 57 | - project: |
| 58 | <<: *qpd_common |
| 59 | <<: *qpd_python |
| 60 | name: ric-app-qp-driver-verify |
Lott, Christopher (cl778h) | f368f98 | 2020-06-03 14:20:27 -0400 | [diff] [blame] | 61 | # do not trigger on changes in docs, releases |
| 62 | gerrit_trigger_file_paths: |
| 63 | - compare-type: REG_EXP |
| 64 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Tommy Carpenter | b18be93 | 2020-03-16 11:09:38 -0400 | [diff] [blame] | 65 | jobs: |
| 66 | - gerrit-tox-verify |
| 67 | stream: |
| 68 | # run verify on all branches |
| 69 | # the ANT pattern is **/{branch}, we are exploiting that. |
| 70 | - all: |
| 71 | branch: '*' |
| 72 | |
| 73 | - project: |
| 74 | <<: *qpd_common |
| 75 | name: ric-app-qp-driver-release |
| 76 | # maven release requires sigul which requires centos |
| 77 | # container release requires docker |
| 78 | build-node: centos7-docker-2c-8g |
| 79 | jobs: |
| 80 | - '{project-name}-gerrit-release-jobs' |
| 81 | |
| 82 | - project: |
| 83 | <<: *qpd_common |
| 84 | <<: *qpd_python |
| 85 | name: ric-app-qp-driver-sonarqube |
| 86 | sonar-project-file: "" |
| 87 | sonar-properties: | |
| 88 | sonar.login={sonarcloud_api_token} |
| 89 | sonar.projectKey={sonarcloud_project_organization}_{project-name} |
| 90 | sonar.projectName={project-name} |
| 91 | sonar.organization={sonarcloud_project_organization} |
| 92 | sonar.build.sourceEncoding=UTF-8 |
| 93 | sonar.sources=qpdriver |
| 94 | sonar.python.coverage.reportPaths=coverage.xml |
| 95 | jobs: |
| 96 | - gerrit-tox-sonarqube |