--- /dev/null
+#==================================================================================
+# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
+#
+# 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-ric-app-qp-aimlfw-ubuntu.sh"
+
+docker --version
+echo "Unit Test"
+cd $WORKSPACE
+
+
+docker build --network=host -t tmpimg --target=qpaimlfwbuild .
+CONTAINER=$(docker create tmpimg)
+docker cp $CONTAINER:/tmp/qp_cover.out cover.out
+docker rm $CONTAINER
+
+echo "--> prescan-ric-app-qp-aimlfw.sh ends"
- project:
<<: *qp_aimlfw_docker_common
- name: ric-app-qp-aimlfw-release
- # maven release requires sigul which requires centos
- # container release requires docker
- build-node: centos7-docker-2c-8g
- jobs:
- - '{project-name}-gerrit-release-jobs'
-
-- project:
- <<: *qp_aimlfw_docker_common
- name: ric-app-qp-aimlfw-docker
+ name: ric-app-qp-aimlfw
project-name: '{name}'
# image name
docker-name: 'o-ran-sc/{name}'
<<: *qp_aimlfw_docker_common
name: ric-app-qp-aimlfw-sonarqube
# the install script assumes an ubuntu image
- build-node: ubuntu1804-builder-2c-2g
- gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: './.*'
+ build-node: ubuntu1804-builder-4c-4g
+ sonar-prescan-script: !include-raw-escape: prescan-ric-app-qp-aimlfw-ubuntu.sh
sonar-project-file: ""
sonar-properties: |
sonar.login={sonarcloud_api_token}
sonar.inclusions=**/*.go
sonar.exclusions=**/*_test.go
jobs:
- - gerrit-tox-sonarqube
+ - gerrit-sonar-prescan-script
+
+- project:
+ <<: *qp_aimlfw_docker_common
+ name: ric-app-qp-aimlfw-release
+ build-node: centos7-docker-2c-8g
+ jobs:
+ - '{project-name}-gerrit-release-jobs'