views:
- project-view
-- project:
- name: ric-plt-vespamgr-info
- project: ric-plt/vespamgr
- project-name: ric-plt-vespamgr
- build-node: centos7-builder-1c-1g
- jobs:
- - gerrit-info-yaml-verify
-
-- vespamgr_docker_common: &vespamgr_docker_common
- # values apply to all vespamgr docker projects
+- _vespamgr_docker_common:
+ &vespamgr_docker_common # values apply to all vespamgr docker projects
name: vespamgr-docker-common
# git repo
project: ric-plt/vespamgr
<<: *vespamgr_docker_common
name: ric-plt-vespamgr
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
+- project:
+ <<: *vespamgr_docker_common
+ name: ric-plt-vespamgr-go-sonarqube
+ # docker-enabled nodes have golang
+ # build script needs ubuntu
+ build-node: ubuntu1804-docker-4c-4g
+ sonar-prescan-script: !include-raw-escape: prescan-ric-plt-vespamgr-ubuntu.sh
+ sonar-project-file: ""
+ # use sonarcloud values from defaults.yaml
+ sonar-properties: |
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
+ jobs:
+ - gerrit-sonar-prescan-script
- project:
<<: *vespamgr_docker_common
name: ric-plt-vespamgr-release
- branch: master
# maven release requires sigul which requires centos
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"