Fixing Issues for OSC verified Jobs 02/19402/8
authorrohithrajneesh <rohith.rajneesh@est.tech>
Thu, 21 Sep 2023 14:45:22 +0000 (15:45 +0100)
committerrohithrajneesh <rohith.rajneesh@est.tech>
Thu, 21 Sep 2023 21:48:29 +0000 (22:48 +0100)
Adding pm-producer, influxlogger and pm-file-converter ranpm jobs

Change-Id: Ia197f84dcfa57a70055a1ccbf67061eb2f4dc63b
Signed-off-by: rohithrajneesh <rohith.rajneesh@est.tech>
12 files changed:
jjb/oransc/global-templates-oran-bash.yaml
jjb/oransc/global-templates-oran-go.yaml
jjb/oransc/global-templates-oran-java.yaml
jjb/oransc/global-templates-oran-nonrtric.yaml [deleted file]
jjb/oransc/nonrtric-plt-dmaapmediatorproducer/nonrtric-plt-dmaapmediatorproducer-verify-jobs.yaml
jjb/oransc/nonrtric-plt-informationcoordinatorservice/nonrtric-plt-informationcoordinatorservice-verify-jobs.yaml
jjb/oransc/nonrtric-plt-ranpm/nonrtric-plt-ranpm-verify-jobs.yaml
jjb/oransc/nonrtric-rapp-healthcheck/nonrtric-rapp-healthcheck-verify-jobs.yaml [deleted file]
jjb/oransc/nonrtric/nonrtric-verify-jobs.yaml
jjb/oransc/verify-jobs-bash.sh
jjb/oransc/verify-jobs-go.sh
jjb/oransc/verify-jobs-nonrtric.sh [deleted file]

index a1d30abfdee0556ea0775c556b4723f6db186715..f4ba9156949bd7bd1fe2f2e1943cc8ba532bd2a2 100644 (file)
           default: ''
       - string:
           name: DIRECTORY
-          default: {directory}
+          default: '{directory}'
           description: Current Project Directory
       - string:
-          name: SCRIPT-NAME
-          default: {script-name}
+          name: SCRIPT_NAME
+          default: '{script-name}'
           description: Script to be executed
 
 
index 478993cfc781f9ee573472d0decf03872c526df6..2015c396388b3cb26fa5f8afe1ac8551f2cd6f76 100644 (file)
@@ -3,6 +3,7 @@
     node: oransc-ubuntu2004
     disabled: false
     concurrent: true
+    directory:
 
     properties:
       - logrotate
@@ -19,7 +20,7 @@
           default: ''
       - string:
           name: DIRECTORY
-          default: ""
+          default: '{directory}'
           description: Current Project Directory
 
     scm:
index 3521a27c366afcbc3e35411712869d5a0384adc2..97d45d63a5227cb2173f935861a69f9e067e6c83 100644 (file)
@@ -3,6 +3,9 @@
     node: oransc-ubuntu2004
     disabled: false
     concurrent: true
+    subdirectory: 
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: '**'
 
     properties:
       - logrotate
           default: '/usr/local/go/bin'
           description: Path to go executable
       - string:
-          name: TRIGGER_BRANCH_PATTERN
-          default: '**'
-          description: Branch patterns to trigger against 
-      - string:
-          name: TRIGGER_FILES_PATH_PATTERN
-          default: '**'
-          description: File path pattern to trigger against
-
+          name: SUBDIRECTORY
+          default: '{subdirectory}'
+          description: Subdirectory of the project
+      
     scm:
       - git-scm-gerrit:
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
@@ -53,8 +52,8 @@
     triggers:
       - nordix-gerrit-trigger-patchset-created:
           project: 'oransc/{project}'
-          branch: $TRIGGER_BRANCH_PATTERN
-          files: $TRIGGER_FILES_PATH_PATTERN
+          branch: '{trigger_branch_pattern}'
+          files: '{trigger_files_path_pattern}'
 
     wrappers:
       - build-timeout:
diff --git a/jjb/oransc/global-templates-oran-nonrtric.yaml b/jjb/oransc/global-templates-oran-nonrtric.yaml
deleted file mode 100644 (file)
index d084dc9..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-- job-template:
-    name: 'oransc-{project-name}-verify'
-    node: oransc-ubuntu2004
-    disabled: false
-    concurrent: true
-
-    properties:
-      - logrotate
-
-    
-    parameters:
-      - nordix-gerrit-parameters
-      - string:
-          name: PROJECT
-          default: 'oransc/{project}'
-          description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
-      - string:
-          name: GERRIT_REFSPEC
-          default: ''
-
-    scm:
-      - git-scm-gerrit:
-          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
-          branch: $GERRIT_BRANCH
-          refspec: $GERRIT_REFSPEC
-          wipe_workspace: true
-          clean_before: false
-
-    triggers:
-      - nordix-gerrit-trigger-patchset-created:
-          project: 'oransc/{project}'
-          branch: '**'
-          files: '**'
-
-    wrappers:
-      - build-timeout:
-          timeout: 45
-
-    builders:
-      - shell:
-          !include-raw-escape: ./verify-jobs-nonrtric.sh
index d29db1c58a3452210f88dcbf238ff87cf169e58d..6150ee85532a07f4a5edc7edd05c951c4c2a369d 100644 (file)
@@ -1,6 +1,6 @@
 ---
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2022 Nordix Foundation.
+#  Copyright (C) 2023 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
index 36f5d6d1df688b0db9aed4cbc2ddc913be24b49a..2c51a7db8fc2d56b30e1eddc9aa554375def1490 100644 (file)
@@ -1,6 +1,6 @@
 ---
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2022 Nordix Foundation.
+#  Copyright (C) 2023 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
     name: nonrtric-plt-informationcoordinatorservice-verify
     project: nonrtric/plt/informationcoordinatorservice
     project-name: nonrtric-plt-informationcoordinatorservice
-    jdk-version: java-11
+    jdk-version: java-17
 
     jobs:
       - 'oransc-{project-name}-verify-java'
\ No newline at end of file
index 2e865e2b6747739a5386e49ef6305c820462c590..98fdfb45a31a1cf8fa0b90b848010d024050cf86 100644 (file)
     name: nonrtric-plt-ranpm-datafilecollector
     project-name: nonrtric-plt-ranpm-datafilecollector
     mvn-params: "-f datafilecollector -Dbuild.number=${{BUILD_NUMBER}}"
-    gerrit_trigger_file_paths:
-      - compare-type: REG_EXP
-        pattern: "**/datafilecollector/**"
     subdirectory: datafilecollector
-    trigger_files_path_pattern: datafilecollector
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: '**/datafilecollector/**'
     jobs:
       - 'oransc-{project-name}-verify-java'
     stream:
       - master:
           branch: master
+
+# Jobs for nonrtric-plt-ranpm-pmproducer
+- project:
+    <<: *nonrtric_plt_ranpm_jdk_common
+    name: nonrtric-plt-ranpm-pmproducer
+    project-name: nonrtric-plt-ranpm-pmproducer
+    mvn-params: "-f pmproducer -Dbuild.number=${{BUILD_NUMBER}}"
+    subdirectory: pmproducer
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: "**/pmproducer/**"
+    jobs:
+      - 'oransc-{project-name}-verify-java'
+    stream:
+      - master:
+          branch: master
+
+# Jobs for nonrtric-plt-ranpm-influxlogger
+- project:
+    <<: *nonrtric_plt_ranpm_jdk_common
+    name: nonrtric-plt-ranpm-influxlogger
+    project-name: nonrtric-plt-ranpm-influxlogger
+    mvn-params: "-f influxlogger -Dbuild.number=${{BUILD_NUMBER}}"
+    subdirectory: influxlogger
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: "**/influxlogger/**"
+    jobs:
+      - 'oransc-{project-name}-verify-java'
+    stream:
+      - master:
+          branch: master
+
+# Jobs for nonrtric-plt-ranpm-pm-file-converter
+- project:
+    <<: *nonrtric_plt_ranpm_jdk_common
+    name: nonrtric-plt-ranpm-pm-file-converter
+    project-name: nonrtric-plt-ranpm-pm-file-converter"
+    subdirectory: pm-file-converter
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: "**/pm-file-converter/**"
+    jobs:
+      - 'oransc-{project-name}-verify-go'
+    stream:
+      - master:
+          branch: master
diff --git a/jjb/oransc/nonrtric-rapp-healthcheck/nonrtric-rapp-healthcheck-verify-jobs.yaml b/jjb/oransc/nonrtric-rapp-healthcheck/nonrtric-rapp-healthcheck-verify-jobs.yaml
deleted file mode 100644 (file)
index 7260cee..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
----
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2022 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.
-#
-# SPDX-License-Identifier: Apache-2.0
-# ============LICENSE_END=========================================================
-
-# this job gets triggered when a change is proposed to
-# nonrtric/rapp/healthcheck project on Nordix Gerrit.
-
-- project:
-    name: nonrtric-rapp-healthcheck-verify
-    project: nonrtric/rapp/healthcheck
-    project-name: nonrtric-rapp-healthcheck
-    jdk-version: java-11
-
-    jobs:
-      - 'oransc-{project-name}-verify-java'
\ No newline at end of file
index f01bd6f33d6f7b74e66c005774cd0358d3089c53..81876ed2cc399e8be042dee193f4c03d07277eb6 100644 (file)
@@ -22,6 +22,7 @@
     project: nonrtric
     project-name: nonrtric
     script-name: verify-jobs-nonrtric.sh
-
+    directory: test/auto-test
+    
     jobs:
       - 'oransc-{project-name}-verify-bash'
index 9524974db29f11c607ca78ae980e6838e9bd065a..6aa74b823b13a2b7b8ff3762469eb9c8b72882d5 100644 (file)
@@ -2,7 +2,8 @@
 
 set -euo pipefail
 
-DIRECTORY = $WORKSPACE"/"${DIRECTORY}
+DIRECTORY=$WORKSPACE"/"${DIRECTORY}
 cd $DIRECTORY
 
-./${SCRIPT-NAME}
+chmod +x ${SCRIPT_NAME}
+./${SCRIPT_NAME}
index 10f809cb5b8122df15340b1c911c4024c3df5a5e..1e0224be8689a721a55459b619b48f8813f584d3 100644 (file)
@@ -2,7 +2,7 @@
 
 set -euo pipefail
 
-DIRECTORY = $WORKSPACE"/"$DIRECTORY
+DIRECTORY=$WORKSPACE"/"${DIRECTORY}
 cd $DIRECTORY
 
 # Read desired Go version from go.mod file
diff --git a/jjb/oransc/verify-jobs-nonrtric.sh b/jjb/oransc/verify-jobs-nonrtric.sh
deleted file mode 100644 (file)
index d0ad54a..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-
-TEST_DIRECTORY="test/auto-test"
-TEST_SCRIPT="./Suite-Verify-jobs.sh"
-DOCKER_COMPOSE_VERSION="v2.21.0"
-
-# Check if jq is installed, and install it if not
-if ! command -v jq &> /dev/null; then
-    echo "Installing jq..."
-    sudo apt-get update
-    sudo apt-get install -y jq
-fi
-
-# Function to install Docker Compose version 2
-install_docker_compose() {
-    echo "Installing Docker Compose version 2..."
-    sudo curl -L "https://github.com/docker/compose/releases/download/"$DOCKER_COMPOSE_VERSION"/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-    sudo chmod +x /usr/local/bin/docker-compose
-    sudo ln -s /usr/local/bin/docker-compose /usr/libexec/docker/cli-plugins/docker-compose
-}
-
-# Function to remove Docker Compose
-remove_docker_compose() {
-    echo "Removing Docker Compose..."
-    sudo rm /usr/local/bin/docker-compose
-}
-
-# Check if docker-compose is installed, and install it if not
-if ! command -v docker-compose &> /dev/null; then
-    install_docker_compose
-fi
-
-cd "$TEST_DIRECTORY"
-sudo chmod 775 "$TEST_SCRIPT"
-"$TEST_SCRIPT" remote-remove docker release --env-file ../common/test_env-oran-h-release.sh
-
-# Remove docker-compose after tests are done
-if command -v docker-compose &> /dev/null; then
-    remove_docker_compose
-fi
-
-# Remove jq after tests are done
-if command -v jq &> /dev/null; then
-    echo "Removing jq..."
-    sudo apt-get remove -y jq
-fi