blob: e936ae8e7a3f6d8203b1bff105dcaa31c694410e [file] [log] [blame]
LF Jenkins CIf58c57c2020-02-26 18:40:17 +00001---
2- project:
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -04003 name: ric-plt-alarm-go-project-view
4 project-name: ric-plt-alarm-go
5 views:
6 - project-view
7
8- project:
LF Jenkins CIf58c57c2020-02-26 18:40:17 +00009 name: ric-plt-alarm-go-info
10 project: ric-plt/alarm-go
11 project-name: ric-plt-alarm-go
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040015
Anil Belur439502c2023-05-07 12:39:38 +100016- _alarm_go_common: &alarm_go_common # values apply to all projects
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040017 name: alarm-go-common
18 # git repo
19 project: ric-plt/alarm-go
20 # jenkins job name prefix
21 project-name: ric-plt-alarm-go
22 # maven settings file has docker credentials
23 mvn-settings: ric-plt-alarm-go-settings
24
25- project:
26 <<: *alarm_go_common
27 name: ric-plt-alarm-go-docker
28 # image name
Anil Belur439502c2023-05-07 12:39:38 +100029 docker-name: "o-ran-sc/ric-plt-alarmmanager"
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040030 # source of docker tag
31 container-tag-method: yaml-file
Mohamed Abukar50e147b2020-09-21 17:57:30 +030032 container-tag-yaml-dir: build
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040033 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100034 docker-build-args: "-f build/Dockerfile --network=host"
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040035 build-node: ubuntu1804-docker-4c-4g
36 stream:
37 - master:
38 branch: master
39 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100040 - "{project-name}-gerrit-docker-jobs"
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040041
42- project:
43 <<: *alarm_go_common
44 name: ric-plt-alarm-go-sonarqube
45 # docker-enabled nodes have golang
46 # build script needs ubuntu
Lott, Christopher (cl778h)da0038e2020-03-13 15:22:49 -040047 build-node: ubuntu1804-docker-4c-4g
Lott, Christopher (cl778h)e5e2a4e2020-03-16 10:02:28 -040048 sonar-prescan-script: !include-raw-escape: prescan-alarm-go-ubuntu.sh
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040049 sonar-project-file: ""
50 # use sonarcloud values from defaults.yaml
51 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100052 # Required metadata
53 sonar.login={sonarcloud_api_token}
54 sonar.projectKey={sonarcloud_project_organization}_{project-name}
55 sonar.projectName={project-name}
56 sonar.organization={sonarcloud_project_organization}
57 # Encoding
58 sonar.build.sourceEncoding=UTF-8
59 # Language
60 sonar.language=go
61 # Source
62 sonar.sources=.
63 # Unit tests
64 sonar.go.coverage.reportPaths=manager/cover.out,alarm/cover.out
65 # Inclusions
66 sonar.inclusions=**/*.go
67 # Exclusions
68 sonar.exclusions=**/*_test.go
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040069 jobs:
70 - gerrit-sonar-prescan-script
Lusheng Ji8bf37c02020-06-18 22:51:48 -040071
72- project:
73 <<: *alarm_go_common
74 name: ric-plt-alarm-go-release
75 build-node: centos7-docker-2c-8g
76 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100077 - "{project-name}-gerrit-release-jobs"