Fixing OSC Verify Jobs 13/19413/1
authorrohithrajneesh <rohith.rajneesh@est.tech>
Fri, 22 Sep 2023 14:27:42 +0000 (15:27 +0100)
committerrohithrajneesh <rohith.rajneesh@est.tech>
Fri, 22 Sep 2023 14:27:42 +0000 (15:27 +0100)
Change-Id: I73e54e777663ee0d9c27a946ae6e5f3682d93a4c

jjb/oransc/global-templates-oran-go.yaml
jjb/oransc/nonrtric-plt-ranpm/nonrtric-plt-ranpm-verify-jobs.yaml
jjb/oransc/nonrtric-rapp-ransliceassurance/nonrtric-rapp-ransliceassurance-verify-jobs.yaml
jjb/oransc/verify-jobs-go.sh

index 2015c396388b3cb26fa5f8afe1ac8551f2cd6f76..0f201d4b9f6525c58b1f51e60d9a7b426628078d 100644 (file)
@@ -3,7 +3,9 @@
     node: oransc-ubuntu2004
     disabled: false
     concurrent: true
-    directory:
+    directory: ' '  
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: '**'
 
     properties:
       - logrotate
index 98fdfb45a31a1cf8fa0b90b848010d024050cf86..4c437b6533c98701468a7bf09bc57733cdb37457 100644 (file)
@@ -75,7 +75,7 @@
 - project:
     <<: *nonrtric_plt_ranpm_jdk_common
     name: nonrtric-plt-ranpm-pm-file-converter
-    project-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/**"
index 1d1408137c5667b7338c891ebd5e27c2f9f893f8..66f2924af79e951c5cd0101a5309f808c66a6119 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.
     project: nonrtric/rapp/ransliceassurance
     project-name: nonrtric-rapp-ransliceassurance-ics
     directory: icsversion
+    trigger_files_path_pattern: "**/icsversion/**"
+    trigger_branch_pattern: '**'
 
     jobs:
       - 'oransc-{project-name}-verify-go'
+
 - project:
     name: nonrtric-rapp-ransliceassurance-smo-verify-go
     project: nonrtric/rapp/ransliceassurance
     project-name: nonrtric-rapp-ransliceassurance-smo
     directory: smoversion
+    trigger_files_path_pattern: "**/smoversion/**"
+    trigger_branch_pattern: '**'
+
 
     jobs:
       - 'oransc-{project-name}-verify-go'
\ No newline at end of file
index 1e0224be8689a721a55459b619b48f8813f584d3..84b3f5a090a64a53a512a5a373c7f9d3ce26d558 100644 (file)
@@ -8,23 +8,13 @@ cd $DIRECTORY
 # Read desired Go version from go.mod file
 desired_version=$(grep '^go' go.mod | grep -Eo '[0-9]\.[0-9]+')
 
-# Check installed Go version
-installed_version=$(go version | awk '{print $3}' | sed 's/go//')
+# Remove existing Go installation
+sudo rm -fr /usr/local/go
 
-if [ "$desired_version" != "$installed_version" ]; then
-    echo "Desired Go version: $desired_version"
-    echo "Installed Go version: $installed_version"
+echo "Download go $desired_version"
+curl -L "https://go.dev/dl/go$desired_version.linux-amd64.tar.gz" | sudo tar -C /usr/local -zxf -
 
-    # Remove existing Go installation
-    sudo rm -fr /usr/local/go
-
-    echo "Download go $desired_version"
-    curl -L "https://go.dev/dl/go$desired_version.linux-amd64.tar.gz" | sudo tar -C /usr/local -zxf -
-
-    export PATH=$PATH:/usr/local/go/bin
-else
-    echo "Go version is up to date: $desired_version"
-fi
+export PATH=$PATH:/usr/local/go/bin
 
 echo "Download project deps"
 go mod tidy