blob: 649e4c2efbd7078f7e54f82a8c1f9a178ffee654 [file] [log] [blame]
lf-jobbuilder2a64d212022-10-13 14:23:06 +00001---
2- project:
3 name: nonrtric-plt-sme-project-view
4 project-name: nonrtric-plt-sme
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _nonrtric_plt_sme_common:
9 &nonrtric_plt_sme_common # values apply to all projects here
elinuxhenrik45ad6fa2022-10-25 13:33:54 +020010 name: nonrtric-plt-sme-common
11 # git repo
12 project: nonrtric/plt/sme
13 # jenkins job name prefix
14 project-name: nonrtric-plt-sme
15 # maven settings file has docker credentials
16 mvn-settings: nonrtric-plt-sme-settings
17 # defaults.yaml value is NOT used due to value set in lf-maven-jobs.yaml
18 java-version: openjdk11
19 mvn-version: mvn36
elinuxhenrik45ad6fa2022-10-25 13:33:54 +020020
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020021- project:
elinuxhenrik45ad6fa2022-10-25 13:33:54 +020022 <<: *nonrtric_plt_sme_common
elinuxhenrik528e46e2022-10-31 10:55:14 +010023 name: nonrtric-plt-sme-release
24 # maven release requires sigul which requires centos
25 # container release requires docker
26 build-node: centos7-docker-2c-8g
27 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100028 - "{project-name}-gerrit-release-jobs"
elinuxhenrik528e46e2022-10-31 10:55:14 +010029
30- project:
31 <<: *nonrtric_plt_sme_common
elinuxhenrikec5058e2022-10-21 15:07:51 +020032 name: nonrtric-plt-sme-capifcore
Anil Belur439502c2023-05-07 12:39:38 +100033 project-name: "{name}"
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020034 # image name
Anil Belur439502c2023-05-07 12:39:38 +100035 docker-name: "o-ran-sc/nonrtric-plt-capifcore"
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020036 # get tag from YAML
37 container-tag-method: yaml-file
elinuxhenrikd8a4e1c2022-11-10 13:01:59 +010038 container-tag-yaml-dir: capifcore
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020039 # use host network to clone from our gerrit
Anil Belur439502c2023-05-07 12:39:38 +100040 docker-build-args: "--network=host"
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020041 # Directory with Dockerfile
Anil Belur439502c2023-05-07 12:39:38 +100042 docker-root: "capifcore"
elinuxhenrik7e8d25d2022-10-20 13:06:19 +020043 # Limit build trigger to appropriate files
44 gerrit_trigger_file_paths:
45 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100046 pattern: "capifcore/.*"
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020047 # Directory where go test should be run
Anil Belur439502c2023-05-07 12:39:38 +100048 go-root: "capifcore"
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020049 build-node: ubuntu1804-docker-4c-4g
50 # Includes verify and merge jobs
51 jobs:
52 - "{project-name}-gerrit-docker-jobs"
53 - gerrit-go-verify
54 stream:
55 - master:
56 branch: master
JohnKeeney9199e552023-06-15 00:23:21 +010057 - h-release:
58 branch: h-release
JohnKeeney45e8cd02023-12-13 15:23:11 +000059 - i-release:
60 branch: i-release
JohnKeeney4e5525f2024-06-24 12:24:16 +010061 - j-release:
62 branch: j-release
elinuxhenrikcdc5ce12022-10-19 09:06:58 +020063
64- project:
elinuxhenrik45ad6fa2022-10-25 13:33:54 +020065 <<: *nonrtric_plt_sme_common
JohnKeeney304f3322024-03-01 16:18:42 +000066 name: nonrtric-plt-sme-servicemanager
67 project-name: "{name}"
68 # image name
69 docker-name: "o-ran-sc/nonrtric-plt-servicemanager"
70 # get tag from YAML
71 container-tag-method: yaml-file
72 container-tag-yaml-dir: servicemanager
73 # use host network to clone from our gerrit
DenisGNoonanea137f42024-04-09 16:04:53 +010074 docker-build-args: "--network=host -f servicemanager/Dockerfile"
75 # Dockerfile is in a subdir
76 docker-root: "."
JohnKeeney304f3322024-03-01 16:18:42 +000077 # Limit build trigger to appropriate files
78 gerrit_trigger_file_paths:
79 - compare-type: REG_EXP
80 pattern: "servicemanager/.*"
81 # Directory where go test should be run
82 go-root: "servicemanager"
83 build-node: ubuntu1804-docker-4c-4g
84 # Includes verify and merge jobs
85 jobs:
86 - "{project-name}-gerrit-docker-jobs"
87 - gerrit-go-verify
88 stream:
89 - master:
90 branch: master
JohnKeeney4e5525f2024-06-24 12:24:16 +010091 - j-release:
92 branch: j-release
JohnKeeney304f3322024-03-01 16:18:42 +000093
94- project:
95 <<: *nonrtric_plt_sme_common
elinuxhenrikec5058e2022-10-21 15:07:51 +020096 name: nonrtric-plt-sme-capifcore-sonar
JohnKeeney304f3322024-03-01 16:18:42 +000097 project-name: nonrtric-plt-sme-capifcore
elinuxhenrikb08aee32022-10-27 10:01:31 +020098 build-node: ubuntu1804-docker-4c-4g
elinuxhenrik45ad6fa2022-10-25 13:33:54 +020099 gerrit_trigger_file_paths:
100 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +1000101 pattern: "capifcore/.*"
elinuxhenrikb08aee32022-10-27 10:01:31 +0200102 sonar-prescan-script: !include-raw-escape: prescan-capifcore-ubuntu.sh
elinuxhenrikdc9413c2022-10-24 17:02:26 +0200103 sonar-project-file: ""
elinuxhenrikb08aee32022-10-27 10:01:31 +0200104 java-version: openjdk11
JohnKeeney304f3322024-03-01 16:18:42 +0000105 sonar-properties: |
106 sonar.login={sonarcloud_api_token}
107 sonar.projectKey={sonarcloud_project_organization}_{project-name}
108 sonar.organization={sonarcloud_project_organization}
109 sonar.projectName={project-name}
110 sonar.build.sourceEncoding=UTF-8
111 sonar.language=go
112 sonar.projectBaseDir=capifcore
113 sonar.go.coverage.reportPaths=coverage.txt
114 sonar.inclusions=**/*.go
115 sonar.exclusions=**/*_test.go
elinuxhenrikcdc5ce12022-10-19 09:06:58 +0200116 jobs:
elinuxhenrikb08aee32022-10-27 10:01:31 +0200117 - gerrit-sonar-prescan-script
JohnKeeney304f3322024-03-01 16:18:42 +0000118
119- project:
120 <<: *nonrtric_plt_sme_common
121 name: nonrtric-plt-sme-servicemanager-sonar
122 project-name: nonrtric-plt-sme-servicemanager
123 build-node: ubuntu1804-docker-4c-4g
124 gerrit_trigger_file_paths:
125 - compare-type: REG_EXP
126 pattern: "servicemanager/.*"
127 sonar-prescan-script: !include-raw-escape: prescan-servicemanager-ubuntu.sh
128 sonar-project-file: ""
129 java-version: openjdk11
130 jobs:
131 - gerrit-sonar-prescan-script
132 sonar-properties: |
133 sonar.login={sonarcloud_api_token}
134 sonar.projectKey={sonarcloud_project_organization}_{project-name}
135 sonar.organization={sonarcloud_project_organization}
136 sonar.projectName={project-name}
137 sonar.build.sourceEncoding=UTF-8
138 sonar.language=go
139 sonar.projectBaseDir=servicemanager
140 sonar.go.coverage.reportPaths=coverage.txt
141 sonar.inclusions=**/*.go
142 sonar.exclusions=**/*_test.go