From: elinuxhenrik Date: Mon, 6 Sep 2021 04:48:06 +0000 (+0200) Subject: Add jobs for nonrtric-dmaap-mediator-producer X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;ds=inline;h=7500773a166ab63233bf47eb19600ce8ef51fa85;hp=4a1e12500bca51ede49751ec05228dd69704568e;p=ci-management.git Add jobs for nonrtric-dmaap-mediator-producer Issue-ID: NONRTRIC-593 Signed-off-by: elinuxhenrik Change-Id: Icec9ac58183ef0005328cc653e308a74cfdd7fd3 --- diff --git a/jjb/nonrtric/nonrtric.yaml b/jjb/nonrtric/nonrtric.yaml index 0f8506e1..967d1701 100644 --- a/jjb/nonrtric/nonrtric.yaml +++ b/jjb/nonrtric/nonrtric.yaml @@ -165,6 +165,60 @@ - dawn: branch: dawn +- project: + <<: *nonrtric_jdk_common + name: nonrtric-dmaap-mediator-producer + project-name: '{name}' + # image name + docker-name: 'o-ran-sc/nonrtric-dmaap-mediator-producer' + # get tag from YAML + container-tag-method: yaml-file + # use host network to clone from our gerrit + docker-build-args: '--network=host' + # Directory with Dockerfile + docker-root: 'dmaap-mediator-producer' + # Limit build trigger to appropriate files + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'dmaap-mediator-producer/.*' + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-dmaap-mediator-producer-sonar + # prescan script requires ubuntu + # golang is only on docker-enabled nodes + build-node: ubuntu1804-docker-4c-4g + sonar-prescan-script: !include-raw-escape: prescan-dmaapmediatorproducer-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=./coverage.txt + # Inclusions + sonar.inclusions=internal/**/**.go + # Exclusions + sonar.exclusions=main.go,mocks/**.go,internal/**/**_test.go + jobs: + - gerrit-sonar-prescan-script + - project: <<: *nonrtric_jdk_common name: nonrtric-release diff --git a/jjb/nonrtric/prescan-dmaapmediatorproducer-ubuntu.sh b/jjb/nonrtric/prescan-dmaapmediatorproducer-ubuntu.sh new file mode 100644 index 00000000..a45e0ab7 --- /dev/null +++ b/jjb/nonrtric/prescan-dmaapmediatorproducer-ubuntu.sh @@ -0,0 +1,30 @@ +#!/bin/sh +############################################################################## +# +# Copyright (C) 2021: Nordix Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +############################################################################## + +echo "--> prescan-dmaapmediatorproducer-ubuntu.sh" + +set -ex + +# Assumes ubuntu - uses apt-get +sudo apt-get update + +# build script execution +bash ./build-dmaapmediatorproducer-ubuntu.sh + +echo "--> prescan-dmaapmediatorproducer-ubuntu.sh ends"