X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-plt-tracelibgo%2Fric-plt-tracelibgo.yaml;h=70cfeda03b9354a891cd46ff209a29c0f23bb93c;hb=31f9c52a6a1eed3182035e6794fa549c5f7cc654;hp=5b4c628cd0b523d1376c14894b9258d995638e06;hpb=0bc2576af8ec96b09d1c45f27f38d5cc0711fb52;p=ci-management.git diff --git a/jjb/ric-plt-tracelibgo/ric-plt-tracelibgo.yaml b/jjb/ric-plt-tracelibgo/ric-plt-tracelibgo.yaml index 5b4c628c..70cfeda0 100644 --- a/jjb/ric-plt-tracelibgo/ric-plt-tracelibgo.yaml +++ b/jjb/ric-plt-tracelibgo/ric-plt-tracelibgo.yaml @@ -13,8 +13,8 @@ jobs: - gerrit-info-yaml-verify -- tracelibgo_docker_common: &tracelibgo_docker_common - # values apply to all tracelibgo docker projects +- _tracelibgo_docker_common: + &tracelibgo_docker_common # values apply to all tracelibgo docker projects name: tracelibgo-docker-common # git repo project: ric-plt/tracelibgo @@ -28,9 +28,9 @@ <<: *tracelibgo_docker_common name: ric-plt-tracelibgo # image name, altho it is never pushed - docker-name: '{name}' + docker-name: "{name}" # use host network - docker-build-args: '--network=host -f ci/Dockerfile' + docker-build-args: "--network=host -f ci/Dockerfile" # image tag; use a fixed value container-tag-method: latest jobs: @@ -38,3 +38,41 @@ 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"