blob: 207293caf5e8d109caef52d19cc2a80e68228287 [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
8- project:
9 name: com-golog-info
10 project: com/golog
11 project-name: com-golog
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
15
16- golog_docker_common: &golog_docker_common
17 # values apply to all golog docker projects
18 name: golog-docker-common
19 # git repo
20 project: com/golog
21 # jenkins job name prefix
22 project-name: com-golog
23 # maven settings file has docker credentials
24 mvn-settings: com-golog-settings
25
26# runs unit tests on verify only
27- project:
28 <<: *golog_docker_common
29 name: com-golog
30 # image name, altho it is never pushed
31 docker-name: '{name}'
32 # use host network
33 docker-build-args: '--network=host -f ci/Dockerfile'
34 # image tag; use a fixed value
35 container-tag-method: latest
36 jobs:
37 - gerrit-docker-verify
38 stream:
39 - master:
40 branch: master
Alok Bhatt559b5a32020-09-29 09:56:08 +000041- project:
42 <<: *golog_docker_common
43 name: com-golog-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-golog-go-ubuntu.sh
48 sonar-project-file: ""
49 # use sonarcloud values from defaults.yaml
50 sonar-properties: |
51 # 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
68 jobs:
69 - gerrit-sonar-prescan-script
70
71- project:
72 <<: *golog_docker_common
73 name: com-golog-go-release
74 build-node: centos7-docker-2c-8g
75 jobs:
76 - '{project-name}-gerrit-release-jobs'