blob: 4c44f1177c50cab040e14c663d54a56d64bad851 [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
Anil Belur439502c2023-05-07 12:39:38 +10008- _alarm_go_common: &alarm_go_common # values apply to all projects
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -04009 name: alarm-go-common
10 # git repo
11 project: ric-plt/alarm-go
12 # jenkins job name prefix
13 project-name: ric-plt-alarm-go
14 # maven settings file has docker credentials
15 mvn-settings: ric-plt-alarm-go-settings
16
17- project:
18 <<: *alarm_go_common
19 name: ric-plt-alarm-go-docker
20 # image name
Anil Belur439502c2023-05-07 12:39:38 +100021 docker-name: "o-ran-sc/ric-plt-alarmmanager"
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040022 # source of docker tag
23 container-tag-method: yaml-file
Mohamed Abukar50e147b2020-09-21 17:57:30 +030024 container-tag-yaml-dir: build
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040025 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100026 docker-build-args: "-f build/Dockerfile --network=host"
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040027 build-node: ubuntu1804-docker-4c-4g
28 stream:
29 - master:
30 branch: master
31 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100032 - "{project-name}-gerrit-docker-jobs"
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040033
34- project:
35 <<: *alarm_go_common
36 name: ric-plt-alarm-go-sonarqube
37 # docker-enabled nodes have golang
38 # build script needs ubuntu
Lott, Christopher (cl778h)da0038e2020-03-13 15:22:49 -040039 build-node: ubuntu1804-docker-4c-4g
Lott, Christopher (cl778h)e5e2a4e2020-03-16 10:02:28 -040040 sonar-prescan-script: !include-raw-escape: prescan-alarm-go-ubuntu.sh
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040041 sonar-project-file: ""
42 # use sonarcloud values from defaults.yaml
43 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100044 # Required metadata
45 sonar.login={sonarcloud_api_token}
46 sonar.projectKey={sonarcloud_project_organization}_{project-name}
47 sonar.projectName={project-name}
48 sonar.organization={sonarcloud_project_organization}
49 # Encoding
50 sonar.build.sourceEncoding=UTF-8
51 # Language
52 sonar.language=go
53 # Source
54 sonar.sources=.
55 # Unit tests
56 sonar.go.coverage.reportPaths=manager/cover.out,alarm/cover.out
57 # Inclusions
58 sonar.inclusions=**/*.go
59 # Exclusions
60 sonar.exclusions=**/*_test.go
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040061 jobs:
62 - gerrit-sonar-prescan-script
Lusheng Ji8bf37c02020-06-18 22:51:48 -040063
64- project:
65 <<: *alarm_go_common
66 name: ric-plt-alarm-go-release
67 build-node: centos7-docker-2c-8g
68 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100069 - "{project-name}-gerrit-release-jobs"