blob: d523a1a37c606a5d3cd98599f0f32fc877298adf [file] [log] [blame]
Roni Riska3a299812019-11-04 09:43:38 +02001---
2- project:
3 name: com-golog-project-view
4 project-name: com-golog
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _golog_docker_common:
9 &golog_docker_common # values apply to all golog docker projects
Roni Riska3a299812019-11-04 09:43:38 +020010 name: golog-docker-common
11 # git repo
12 project: com/golog
13 # jenkins job name prefix
14 project-name: com-golog
15 # maven settings file has docker credentials
16 mvn-settings: com-golog-settings
17
18# runs unit tests on verify only
19- project:
20 <<: *golog_docker_common
21 name: com-golog
22 # image name, altho it is never pushed
Anil Belur439502c2023-05-07 12:39:38 +100023 docker-name: "{name}"
Roni Riska3a299812019-11-04 09:43:38 +020024 # use host network
Anil Belur439502c2023-05-07 12:39:38 +100025 docker-build-args: "--network=host -f ci/Dockerfile"
Roni Riska3a299812019-11-04 09:43:38 +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 Bhatt559b5a32020-09-29 09:56:08 +000033- project:
34 <<: *golog_docker_common
35 name: com-golog-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-golog-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=**/*_test.go
Alok Bhatt559b5a32020-09-29 09:56:08 +000060 jobs:
61 - gerrit-sonar-prescan-script
62
63- project:
64 <<: *golog_docker_common
65 name: com-golog-go-release
66 build-node: centos7-docker-2c-8g
67 jobs:
Anil Belur439502c2023-05-07 12:39:38 +100068 - "{project-name}-gerrit-release-jobs"