Testing RANPM-datafilecollector verify Job 80/19380/3
authorrohithrajneesh <rohith.rajneesh@est.tech>
Tue, 19 Sep 2023 14:13:32 +0000 (15:13 +0100)
committerRobert Tomczyk <robert.tomczyk.est@gmail.com>
Wed, 20 Sep 2023 14:41:39 +0000 (14:41 +0000)
Change-Id: I59253dcd1603904f10206547f26aa3743a0a85b9
Signed-off-by: rohithrajneesh <rohith.rajneesh@est.tech>
jjb/oransc/global-templates-oran-java.yaml
jjb/oransc/nonrtric-plt-ranpm/nonrtric-plt-ranpm-verify-jobs.yaml

index 95a4f4d418839d6e01e764f588958e5b90d8c8b0..3521a27c366afcbc3e35411712869d5a0384adc2 100644 (file)
           name: GO_PATH
           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
 
     scm:
       - git-scm-gerrit:
@@ -45,8 +53,8 @@
     triggers:
       - nordix-gerrit-trigger-patchset-created:
           project: 'oransc/{project}'
-          branch: '**'
-          files: '**'
+          branch: $TRIGGER_BRANCH_PATTERN
+          files: $TRIGGER_FILES_PATH_PATTERN
 
     wrappers:
       - build-timeout:
index cf1154ab606c2bfc87ed0907811de829f8853b6d..2e865e2b6747739a5386e49ef6305c820462c590 100644 (file)
@@ -34,7 +34,9 @@
     mvn-params: "-f datafilecollector -Dbuild.number=${{BUILD_NUMBER}}"
     gerrit_trigger_file_paths:
       - compare-type: REG_EXP
-        pattern: "datafilecollector/.*"
+        pattern: "**/datafilecollector/**"
+    subdirectory: datafilecollector
+    trigger_files_path_pattern: datafilecollector
     jobs:
       - 'oransc-{project-name}-verify-java'
     stream: