lf-jobbuilder | feffed0 | 2023-02-28 17:45:29 +0000 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: nonrtric-plt-ranpm-project-view |
| 4 | project-name: nonrtric-plt-ranpm |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Anil Belur | 4e0d56a | 2023-04-18 11:49:03 +1000 | [diff] [blame] | 8 | - _nonrtric-plt-ranpm_common: &nonrtric_plt_ranpm_jdk_common |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 9 | name: nonrtric-plt-ranpm-common |
| 10 | # git repo |
| 11 | project: nonrtric/plt/ranpm |
| 12 | # jenkins job name prefix |
| 13 | project-name: nonrtric-plt-ranpm |
| 14 | # maven settings file has docker credentials |
| 15 | mvn-settings: nonrtric-plt-ranpm-settings |
| 16 | mvn-version: mvn36 |
| 17 | java-version: openjdk17 |
| 18 | |
| 19 | - project: |
| 20 | <<: *nonrtric_plt_ranpm_jdk_common |
| 21 | name: nonrtric-plt-ranpm-gerrit-release |
| 22 | project-name: nonrtric-plt-ranpm |
| 23 | # maven release requires sigul which requires centos |
| 24 | # container release requires docker |
| 25 | build-node: centos7-docker-2c-8g |
| 26 | jobs: |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 27 | - "{project-name}-gerrit-release-jobs" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 28 | |
| 29 | # Jobs for nonrtric-plt-ranpm-datafilecollector |
| 30 | - project: |
| 31 | <<: *nonrtric_plt_ranpm_jdk_common |
| 32 | name: nonrtric-plt-ranpm-datafilecollector-gerrit-maven-docker |
| 33 | #job name prefix |
| 34 | project-name: nonrtric-plt-ranpm-datafilecollector |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 35 | mvn-params: "-f datafilecollector -Dbuild.number=${{BUILD_NUMBER}}" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 36 | gerrit_trigger_file_paths: |
| 37 | - compare-type: REG_EXP |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 38 | pattern: "datafilecollector/.*" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 39 | jobs: |
| 40 | - gerrit-maven-clm |
| 41 | - gerrit-maven-verify-dependencies |
| 42 | - gerrit-maven-docker-merge |
| 43 | - gerrit-maven-docker-stage |
| 44 | - gerrit-maven-docker-verify |
| 45 | stream: |
| 46 | - master: |
| 47 | branch: master |
JohnKeeney | 9199e55 | 2023-06-15 00:23:21 +0100 | [diff] [blame] | 48 | - h-release: |
| 49 | branch: h-release |
JohnKeeney | 45e8cd0 | 2023-12-13 15:23:11 +0000 | [diff] [blame] | 50 | - i-release: |
| 51 | branch: i-release |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 52 | |
| 53 | # Jobs for nonrtric-plt-ranpm-pmproducer |
| 54 | - project: |
| 55 | <<: *nonrtric_plt_ranpm_jdk_common |
| 56 | name: nonrtric-plt-ranpm-pmproducer-gerrit-maven-docker |
| 57 | #job name prefix |
| 58 | project-name: nonrtric-plt-ranpm-pmproducer |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 59 | mvn-params: "-f pmproducer -Dbuild.number=${{BUILD_NUMBER}}" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 60 | gerrit_trigger_file_paths: |
| 61 | - compare-type: REG_EXP |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 62 | pattern: "pmproducer/.*" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 63 | jobs: |
| 64 | - gerrit-maven-clm |
| 65 | - gerrit-maven-verify-dependencies |
| 66 | - gerrit-maven-docker-merge |
| 67 | - gerrit-maven-docker-stage |
| 68 | - gerrit-maven-docker-verify |
| 69 | stream: |
| 70 | - master: |
| 71 | branch: master |
JohnKeeney | 9199e55 | 2023-06-15 00:23:21 +0100 | [diff] [blame] | 72 | - h-release: |
| 73 | branch: h-release |
JohnKeeney | 45e8cd0 | 2023-12-13 15:23:11 +0000 | [diff] [blame] | 74 | - i-release: |
| 75 | branch: i-release |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 76 | |
| 77 | # Jobs for nonrtric-plt-ranpm-influxlogger |
| 78 | - project: |
| 79 | <<: *nonrtric_plt_ranpm_jdk_common |
| 80 | name: nonrtric-plt-ranpm-influxlogger-gerrit-maven-docker |
| 81 | #job name prefix |
| 82 | project-name: nonrtric-plt-ranpm-influxlogger |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 83 | mvn-params: "-f influxlogger -Dbuild.number=${{BUILD_NUMBER}}" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 84 | gerrit_trigger_file_paths: |
| 85 | - compare-type: REG_EXP |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 86 | pattern: "influxlogger/.*" |
JohnKeeney | 5c86606 | 2023-03-06 18:01:04 +0000 | [diff] [blame] | 87 | jobs: |
| 88 | - gerrit-maven-clm |
| 89 | - gerrit-maven-verify-dependencies |
| 90 | - gerrit-maven-docker-merge |
| 91 | - gerrit-maven-docker-stage |
| 92 | - gerrit-maven-docker-verify |
| 93 | stream: |
| 94 | - master: |
| 95 | branch: master |
JohnKeeney | 9199e55 | 2023-06-15 00:23:21 +0100 | [diff] [blame] | 96 | - h-release: |
| 97 | branch: h-release |
JohnKeeney | 45e8cd0 | 2023-12-13 15:23:11 +0000 | [diff] [blame] | 98 | - i-release: |
| 99 | branch: i-release |
JohnKeeney | 1fc2f3d | 2023-05-16 18:29:23 +0100 | [diff] [blame] | 100 | |
| 101 | - project: |
| 102 | <<: *nonrtric_plt_ranpm_jdk_common |
| 103 | name: nonrtric-plt-ranpm-pm-file-converter |
| 104 | project-name: "{name}" |
| 105 | # image name |
| 106 | docker-name: "o-ran-sc/nonrtric-plt-ranpm-pm-file-converter" |
| 107 | # get tag from YAML |
| 108 | container-tag-method: yaml-file |
| 109 | # use host network to clone from our gerrit |
| 110 | docker-build-args: "--network=host" |
| 111 | # Directory with Dockerfile |
| 112 | docker-root: "pm-file-converter" |
| 113 | # Directory where go test should be run |
| 114 | go-root: "pm-file-converter" |
| 115 | gerrit_trigger_file_paths: |
| 116 | - compare-type: REG_EXP |
| 117 | pattern: "pm-file-converter/.*" |
| 118 | build-node: ubuntu1804-docker-4c-4g |
| 119 | # Includes verify and merge jobs |
| 120 | jobs: |
| 121 | - "{project-name}-gerrit-docker-jobs" |
| 122 | - gerrit-go-verify |
| 123 | stream: |
| 124 | - master: |
| 125 | branch: master |
JohnKeeney | 9199e55 | 2023-06-15 00:23:21 +0100 | [diff] [blame] | 126 | - h-release: |
| 127 | branch: h-release |
JohnKeeney | 45e8cd0 | 2023-12-13 15:23:11 +0000 | [diff] [blame] | 128 | - i-release: |
| 129 | branch: i-release |
ambrishest | c46bfa0 | 2023-08-09 13:59:29 +0100 | [diff] [blame] | 130 | |
| 131 | # Jobs for nonrtric-plt-ranpm-pm-file-converter SONAR |
| 132 | - project: |
| 133 | <<: *nonrtric_plt_ranpm_jdk_common |
| 134 | name: nonrtric-plt-ranpm-pm-file-converter-sonar |
ambrishest | 265b479 | 2023-08-15 12:08:41 +0100 | [diff] [blame] | 135 | project-name: nonrtric-plt-ranpm-pm-file-converter |
ambrishest | c46bfa0 | 2023-08-09 13:59:29 +0100 | [diff] [blame] | 136 | # prescan script requires ubuntu |
| 137 | # golang is only on docker-enabled nodes |
| 138 | build-node: ubuntu1804-docker-4c-4g |
| 139 | gerrit_trigger_file_paths: |
| 140 | - compare-type: REG_EXP |
| 141 | pattern: "pm-file-converter/.*" |
| 142 | sonar-prescan-script: !include-raw-escape: prescan-pm-file-converter-ubuntu.sh |
| 143 | sonar-project-file: "" |
| 144 | java-version: openjdk11 |
| 145 | # use sonarcloud values from defaults.yaml |
ambrishest | 430ff20 | 2023-08-17 12:22:39 +0100 | [diff] [blame] | 146 | sonar-properties: | |
| 147 | sonar.login={sonarcloud_api_token} |
| 148 | sonar.projectKey={sonarcloud_project_organization}_{project-name} |
| 149 | sonar.organization={sonarcloud_project_organization} |
| 150 | sonar.projectName={project-name} |
| 151 | sonar.build.sourceEncoding=UTF-8 |
| 152 | sonar.language=go |
ambrishest | a87cf63 | 2023-10-03 11:07:28 +0100 | [diff] [blame] | 153 | sonar.projectBaseDir=pm-file-converter |
| 154 | sonar.go.coverage.reportPaths=coverage.txt |
| 155 | sonar.inclusions=**/*.go |
| 156 | sonar.exclusions=**/*_test.go |
ambrishest | c46bfa0 | 2023-08-09 13:59:29 +0100 | [diff] [blame] | 157 | jobs: |
| 158 | - gerrit-sonar-prescan-script |
ambrishest | a80c3ed | 2023-08-10 17:28:58 +0100 | [diff] [blame] | 159 | |
| 160 | - project: |
| 161 | <<: *nonrtric_plt_ranpm_jdk_common |
| 162 | name: nonrtric-plt-ranpm-datafilecollector-sonar |
| 163 | project-name: nonrtric-plt-ranpm-datafilecollector |
| 164 | # template goal install builds docker image unnecessarily |
ambrishest | 79091fd | 2023-08-18 12:06:01 +0100 | [diff] [blame] | 165 | mvn-params: "-f datafilecollector -Ddocker.skip=true" |
| 166 | gerrit_trigger_file_paths: |
| 167 | - compare-type: REG_EXP |
| 168 | pattern: "datafilecollector/.*" |
ambrishest | e190bca | 2023-08-21 10:23:02 +0100 | [diff] [blame] | 169 | sonarcloud: true |
| 170 | sonarcloud-api-token: "{sonarcloud_api_token}" |
| 171 | sonarcloud-project-key: "nonrtric-plt-ranpm-datafilecollector" |
| 172 | sonarcloud-project-organization: "{sonarcloud_project_organization}" |
ambrishest | a80c3ed | 2023-08-10 17:28:58 +0100 | [diff] [blame] | 173 | jobs: |
| 174 | - gerrit-maven-sonar |
ambrishest | 900c385 | 2023-08-22 17:09:41 +0100 | [diff] [blame] | 175 | |
| 176 | - project: |
| 177 | <<: *nonrtric_plt_ranpm_jdk_common |
| 178 | name: nonrtric-plt-ranpm-pmproducer-sonar |
| 179 | project-name: nonrtric-plt-ranpm-pmproducer |
| 180 | # template goal install builds docker image unnecessarily |
| 181 | mvn-params: "-f pmproducer -Ddocker.skip=true" |
| 182 | gerrit_trigger_file_paths: |
| 183 | - compare-type: REG_EXP |
| 184 | pattern: "pmproducer/.*" |
| 185 | sonarcloud: true |
| 186 | sonarcloud-api-token: "{sonarcloud_api_token}" |
| 187 | sonarcloud-project-key: "nonrtric-plt-ranpm-pmproducer" |
| 188 | sonarcloud-project-organization: "{sonarcloud_project_organization}" |
| 189 | jobs: |
| 190 | - gerrit-maven-sonar |
| 191 | |
| 192 | - project: |
| 193 | <<: *nonrtric_plt_ranpm_jdk_common |
| 194 | name: nonrtric-plt-ranpm-influxlogger-sonar |
| 195 | project-name: nonrtric-plt-ranpm-influxlogger |
| 196 | # template goal install builds docker image unnecessarily |
| 197 | mvn-params: "-f influxlogger -Ddocker.skip=true" |
| 198 | gerrit_trigger_file_paths: |
| 199 | - compare-type: REG_EXP |
| 200 | pattern: "influxlogger/.*" |
| 201 | sonarcloud: true |
| 202 | sonarcloud-api-token: "{sonarcloud_api_token}" |
| 203 | sonarcloud-project-key: "nonrtric-plt-ranpm-influxlogger" |
| 204 | sonarcloud-project-organization: "{sonarcloud_project_organization}" |
| 205 | jobs: |
| 206 | - gerrit-maven-sonar |