From b9b3ba0c7e5c54421fb19ff33e9550665ab7d629 Mon Sep 17 00:00:00 2001 From: elinuxhenrik Date: Mon, 4 Oct 2021 16:19:05 +0200 Subject: [PATCH] Add jobs for O-RU Closed Loop consumer rApp Issue-ID: NONRTRIC-592 Signed-off-by: elinuxhenrik Change-Id: Id947eb742507b536ea8383e84e52b04ae2cfc97b --- jjb/nonrtric/nonrtric.yaml | 56 ++++++++++++++++++++++ .../prescan-oruclosedloopconsumer-ubuntu.sh | 30 ++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 jjb/nonrtric/prescan-oruclosedloopconsumer-ubuntu.sh diff --git a/jjb/nonrtric/nonrtric.yaml b/jjb/nonrtric/nonrtric.yaml index 49d34993..c7a0b7ae 100644 --- a/jjb/nonrtric/nonrtric.yaml +++ b/jjb/nonrtric/nonrtric.yaml @@ -189,6 +189,30 @@ - master: branch: master +- project: + <<: *nonrtric_jdk_common + name: nonrtric-o-ru-closed-loop-consumer + project-name: '{name}' + # image name + docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-consumer' + # 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: 'test/usecases/oruclosedlooprecovery/goversion/' + # Limit build trigger to appropriate files + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'test/usecases/oruclosedlooprecovery/goversion/.*' + 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 @@ -221,6 +245,38 @@ jobs: - gerrit-sonar-prescan-script +- project: + <<: *nonrtric_jdk_common + name: nonrtric-o-ru-closed-loop-consumer-sonar + project-name: '{name}' + # prescan script requires ubuntu + # golang is only on docker-enabled nodes + build-node: ubuntu1804-docker-4c-4g + sonar-prescan-script: !include-raw-escape: prescan-oruclosedloopconsumer-ubuntu.sh + sonar-project-file: "" + java-version: openjdk11 + # use sonarcloud values from defaults.yaml + sonar-properties: | + # Required metadata + sonar.login={sonarcloud_api_token} + sonar.projectKey={sonarcloud_project_organization}_{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=test/usecases/oruclosedlooprecovery/goversion/coverage.txt + # Inclusions + sonar.inclusions=test/usecases/oruclosedlooprecovery/goversion/internal/**/**.go + # Exclusions + sonar.exclusions=test/usecases/oruclosedlooprecovery/goversion/main.go,test/usecases/oruclosedlooprecovery/goversion/mocks/**.go,test/usecases/oruclosedlooprecovery/goversion/internal/**/**_test.go + jobs: + - gerrit-sonar-prescan-script + - project: <<: *nonrtric_jdk_common name: nonrtric-release diff --git a/jjb/nonrtric/prescan-oruclosedloopconsumer-ubuntu.sh b/jjb/nonrtric/prescan-oruclosedloopconsumer-ubuntu.sh new file mode 100644 index 00000000..f13df5a2 --- /dev/null +++ b/jjb/nonrtric/prescan-oruclosedloopconsumer-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-oruclosedloopconsumer-ubuntu.sh" + +set -ex + +# Assumes ubuntu - uses apt-get +sudo apt-get update + +# build script execution +bash test/usecases/oruclosedlooprecovery/goversion/build-oruclosedloopconsumer-ubuntu.sh + +echo "--> prescan-oruclosedloopconsumer-ubuntu.sh ends" -- 2.16.6