blob: 05f77b66e160ec1fc3f4ddf29bf24e2c28d84123 [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
elinuxhenrikd8dfdf82023-01-03 14:52:58 +010057 - g-release:
58 branch: g-release
JohnKeeney9199e552023-06-15 00:23:21 +010059 - h-release:
60 branch: h-release
JohnKeeney45e8cd02023-12-13 15:23:11 +000061 - i-release:
62 branch: i-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
91
92- project:
93 <<: *nonrtric_plt_sme_common
elinuxhenrikec5058e2022-10-21 15:07:51 +020094 name: nonrtric-plt-sme-capifcore-sonar
JohnKeeney304f3322024-03-01 16:18:42 +000095 project-name: nonrtric-plt-sme-capifcore
elinuxhenrikb08aee32022-10-27 10:01:31 +020096 build-node: ubuntu1804-docker-4c-4g
elinuxhenrik45ad6fa2022-10-25 13:33:54 +020097 gerrit_trigger_file_paths:
98 - compare-type: REG_EXP
Anil Belur439502c2023-05-07 12:39:38 +100099 pattern: "capifcore/.*"
elinuxhenrikb08aee32022-10-27 10:01:31 +0200100 sonar-prescan-script: !include-raw-escape: prescan-capifcore-ubuntu.sh
elinuxhenrikdc9413c2022-10-24 17:02:26 +0200101 sonar-project-file: ""
elinuxhenrikb08aee32022-10-27 10:01:31 +0200102 java-version: openjdk11
JohnKeeney304f3322024-03-01 16:18:42 +0000103 sonar-properties: |
104 sonar.login={sonarcloud_api_token}
105 sonar.projectKey={sonarcloud_project_organization}_{project-name}
106 sonar.organization={sonarcloud_project_organization}
107 sonar.projectName={project-name}
108 sonar.build.sourceEncoding=UTF-8
109 sonar.language=go
110 sonar.projectBaseDir=capifcore
111 sonar.go.coverage.reportPaths=coverage.txt
112 sonar.inclusions=**/*.go
113 sonar.exclusions=**/*_test.go
elinuxhenrikcdc5ce12022-10-19 09:06:58 +0200114 jobs:
elinuxhenrikb08aee32022-10-27 10:01:31 +0200115 - gerrit-sonar-prescan-script
JohnKeeney304f3322024-03-01 16:18:42 +0000116
117- project:
118 <<: *nonrtric_plt_sme_common
119 name: nonrtric-plt-sme-servicemanager-sonar
120 project-name: nonrtric-plt-sme-servicemanager
121 build-node: ubuntu1804-docker-4c-4g
122 gerrit_trigger_file_paths:
123 - compare-type: REG_EXP
124 pattern: "servicemanager/.*"
125 sonar-prescan-script: !include-raw-escape: prescan-servicemanager-ubuntu.sh
126 sonar-project-file: ""
127 java-version: openjdk11
128 jobs:
129 - gerrit-sonar-prescan-script
130 sonar-properties: |
131 sonar.login={sonarcloud_api_token}
132 sonar.projectKey={sonarcloud_project_organization}_{project-name}
133 sonar.organization={sonarcloud_project_organization}
134 sonar.projectName={project-name}
135 sonar.build.sourceEncoding=UTF-8
136 sonar.language=go
137 sonar.projectBaseDir=servicemanager
138 sonar.go.coverage.reportPaths=coverage.txt
139 sonar.inclusions=**/*.go
140 sonar.exclusions=**/*_test.go