Fixing Issues for OSC verified Jobs
[infra/cicd.git] / jjb / oransc / global-templates-oran-java.yaml
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: