blob: 70cfeda03b9354a891cd46ff209a29c0f23bb93c [file] [log] [blame]
Lott, Christopher (cl778h)c2d0f362019-08-15 08:46:35 -04001---
2- project:
3 name: ric-plt-tracelibgo-project-view
4 project-name: ric-plt-tracelibgo
5 views:
6 - project-view
7
8- project:
9 name: ric-plt-tracelibgo-info
10 project: ric-plt/tracelibgo
11 project-name: ric-plt-tracelibgo
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
15
Anil Belur439502c2023-05-07 12:39:38 +100016- _tracelibgo_docker_common:
17 &tracelibgo_docker_common # values apply to all tracelibgo docker projects
Lott, Christopher (cl778h)c2d0f362019-08-15 08:46:35 -040018 name: tracelibgo-docker-common
19 # git repo
20 project: ric-plt/tracelibgo
21 # jenkins job name prefix
22 project-name: ric-plt-tracelibgo
23 # maven settings file has docker credentials
24 mvn-settings: ric-plt-tracelibgo-settings
25
Lott, Christopher (cl778h)0bc25762019-09-04 05:54:20 -040026# runs unit tests on verify only
Lott, Christopher (cl778h)c2d0f362019-08-15 08:46:35 -040027- project:
28 <<: *tracelibgo_docker_common
29 name: ric-plt-tracelibgo
30 # image name, altho it is never pushed
Anil Belur439502c2023-05-07 12:39:38 +100031 docker-name: "{name}"
Lott, Christopher (cl778h)c2d0f362019-08-15 08:46:35 -040032 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100033 docker-build-args: "--network=host -f ci/Dockerfile"
Lott, Christopher (cl778h)c2d0f362019-08-15 08:46:35 -040034 # image tag; use a fixed value
35 container-tag-method: latest
36 jobs:
37 - gerrit-docker-verify
Lott, Christopher (cl778h)c2d0f362019-08-15 08:46:35 -040038 stream:
39 - master:
40 branch: master
Alok Bhatte8794112020-10-16 06:30:50 +000041- project:
42 <<: *tracelibgo_docker_common
43 name: ric-plt-tracelibgo-go-sonarqube
44 # docker-enabled nodes have golang
45 # build script needs ubuntu
46 build-node: ubuntu1804-docker-4c-4g
47 sonar-prescan-script: !include-raw-escape: prescan-ric-plt-tracelibgo-ubuntu.sh
48 sonar-project-file: ""
49 # use sonarcloud values from defaults.yaml
50 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100051 # Required metadata
52 sonar.login={sonarcloud_api_token}
53 sonar.projectKey={sonarcloud_project_organization}_{project-name}
54 sonar.projectName={project-name}
55 sonar.organization={sonarcloud_project_organization}
56 # Encoding
57 sonar.build.sourceEncoding=UTF-8
58 # Language
59 sonar.language=go
60 # Source
61 sonar.sources=.
62 # Unit tests
63 sonar.go.coverage.reportPaths=**/cover.out
64 # Inclusions
65 sonar.inclusions=**/*.go
66 # Exclusions
67 sonar.exclusions=**/*_test.go
Alok Bhatte8794112020-10-16 06:30:50 +000068 jobs:
69 - gerrit-sonar-prescan-script
70
71- project:
72 <<: *tracelibgo_docker_common
73 name: ric-plt-tracelibgo-release
74 # maven release requires sigul which requires centos
75 # container release requires docker
76 build-node: centos7-docker-2c-8g
77 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100078 - "{project-name}-gerrit-release-jobs"