blob: 4aeeaaa9aadc275f0b64b0c991ccfd4f3031e5e9 [file] [log] [blame]
Marco Tallskog7a2bf682019-11-01 16:56:01 +02001---
2- project:
3 name: ric-plt-sdlgo-project-view
4 project-name: ric-plt-sdlgo
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _sdlgo_docker_common:
9 &sdlgo_docker_common # values apply to all sdlgo docker projects
Marco Tallskog7a2bf682019-11-01 16:56:01 +020010 name: sdlgo-docker-common
11 # git repo
12 project: ric-plt/sdlgo
13 # jenkins job name prefix
14 project-name: ric-plt-sdlgo
15 # maven settings file has docker credentials
16 mvn-settings: ric-plt-sdlgo-settings
17
18# runs unit tests on verify only
19- project:
20 <<: *sdlgo_docker_common
21 name: ric-plt-sdlgo
22 # image name, altho it is never pushed
Anil Belur439502c2023-05-07 12:39:38 +100023 docker-name: "{name}"
Marco Tallskog7a2bf682019-11-01 16:56:01 +020024 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100025 docker-build-args: "--network=host -f ci/Dockerfile"
Marco Tallskog7a2bf682019-11-01 16:56:01 +020026 # image tag; use a fixed value
27 container-tag-method: latest
28 jobs:
29 - gerrit-docker-verify
30 stream:
31 - master:
32 branch: master
Alok Bhatt57da2da2020-09-29 10:46:07 +000033- project:
34 <<: *sdlgo_docker_common
35 name: ric-plt-sdlgo-go-sonarqube
36 # docker-enabled nodes have golang
37 # build script needs ubuntu
38 build-node: ubuntu1804-docker-4c-4g
39 sonar-prescan-script: !include-raw-escape: prescan-sdlgo-go-ubuntu.sh
40 sonar-project-file: ""
41 # use sonarcloud values from defaults.yaml
42 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100043 # Required metadata
44 sonar.login={sonarcloud_api_token}
45 sonar.projectKey={sonarcloud_project_organization}_{project-name}
46 sonar.projectName={project-name}
47 sonar.organization={sonarcloud_project_organization}
48 # Encoding
49 sonar.build.sourceEncoding=UTF-8
50 # Language
51 sonar.language=go
52 # Source
53 sonar.sources=.
54 # Unit tests
55 sonar.go.coverage.reportPaths=**/cover.out
56 # Inclusions
57 sonar.inclusions=**/*.go
58 # Exclusions
59 sonar.exclusions=cmd/**.go,example/**.go,internal/mocks/**.go,**/*_test.go
Alok Bhatt57da2da2020-09-29 10:46:07 +000060 jobs:
61 - gerrit-sonar-prescan-script
62
63- project:
64 <<: *sdlgo_docker_common
65 name: ric-plt-sdlgo-go-release
66 build-node: centos7-docker-2c-8g
67 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100068 - "{project-name}-gerrit-release-jobs"