blob: 70cfeda03b9354a891cd46ff209a29c0f23bb93c [file] [log] [blame]
---
- project:
name: ric-plt-tracelibgo-project-view
project-name: ric-plt-tracelibgo
views:
- project-view
- project:
name: ric-plt-tracelibgo-info
project: ric-plt/tracelibgo
project-name: ric-plt-tracelibgo
build-node: centos7-builder-1c-1g
jobs:
- gerrit-info-yaml-verify
- _tracelibgo_docker_common:
&tracelibgo_docker_common # values apply to all tracelibgo docker projects
name: tracelibgo-docker-common
# git repo
project: ric-plt/tracelibgo
# jenkins job name prefix
project-name: ric-plt-tracelibgo
# maven settings file has docker credentials
mvn-settings: ric-plt-tracelibgo-settings
# runs unit tests on verify only
- project:
<<: *tracelibgo_docker_common
name: ric-plt-tracelibgo
# image name, altho it is never pushed
docker-name: "{name}"
# use host network
docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
- gerrit-docker-verify
stream:
- master:
branch: master
- project:
<<: *tracelibgo_docker_common
name: ric-plt-tracelibgo-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-tracelibgo-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:
<<: *tracelibgo_docker_common
name: ric-plt-tracelibgo-release
# maven release requires sigul which requires centos
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- "{project-name}-gerrit-release-jobs"