blob: dae92066f89ac81dcd5223eb2aae5b82d2f3f402 [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
16- alarm_go_common: &alarm_go_common
17 # values apply to all projects
18 name: alarm-go-common
19 # git repo
20 project: ric-plt/alarm-go
21 # jenkins job name prefix
22 project-name: ric-plt-alarm-go
23 # maven settings file has docker credentials
24 mvn-settings: ric-plt-alarm-go-settings
25
26- project:
27 <<: *alarm_go_common
28 name: ric-plt-alarm-go-docker
29 # image name
Mohamed Abukar50e147b2020-09-21 17:57:30 +030030 docker-name: 'o-ran-sc/ric-plt-alarmmanager'
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040031 # source of docker tag
32 container-tag-method: yaml-file
Mohamed Abukar50e147b2020-09-21 17:57:30 +030033 container-tag-yaml-dir: build
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040034 # use host network
Mohamed Abukar50e147b2020-09-21 17:57:30 +030035 docker-build-args: '-f build/Dockerfile --network=host'
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040036 build-node: ubuntu1804-docker-4c-4g
37 stream:
38 - master:
39 branch: master
40 jobs:
41 - '{project-name}-gerrit-docker-jobs'
42
43- project:
44 <<: *alarm_go_common
45 name: ric-plt-alarm-go-sonarqube
46 # docker-enabled nodes have golang
47 # build script needs ubuntu
Lott, Christopher (cl778h)da0038e2020-03-13 15:22:49 -040048 build-node: ubuntu1804-docker-4c-4g
Lott, Christopher (cl778h)e5e2a4e2020-03-16 10:02:28 -040049 sonar-prescan-script: !include-raw-escape: prescan-alarm-go-ubuntu.sh
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040050 sonar-project-file: ""
51 # use sonarcloud values from defaults.yaml
52 sonar-properties: |
53 # Required metadata
54 sonar.login={sonarcloud_api_token}
55 sonar.projectKey={sonarcloud_project_organization}_{project-name}
56 sonar.projectName={project-name}
57 sonar.organization={sonarcloud_project_organization}
58 # Encoding
59 sonar.build.sourceEncoding=UTF-8
60 # Language
61 sonar.language=go
62 # Source
63 sonar.sources=.
64 # Unit tests
Mohamed Abukar50e147b2020-09-21 17:57:30 +030065 sonar.go.coverage.reportPaths=manager/cover.out,alarm/cover.out
Lott, Christopher (cl778h)1df0a792020-03-13 10:09:01 -040066 # Inclusions
67 sonar.inclusions=**/*.go
68 # Exclusions
69 sonar.exclusions=**/*_test.go
70 jobs:
71 - gerrit-sonar-prescan-script
Lusheng Ji8bf37c02020-06-18 22:51:48 -040072
73- project:
74 <<: *alarm_go_common
75 name: ric-plt-alarm-go-release
76 build-node: centos7-docker-2c-8g
77 jobs:
78 - '{project-name}-gerrit-release-jobs'