Fixing Issues for OSC verified Jobs
[infra/cicd.git] / jjb / oransc / global-templates-oran-java.yaml
index 8a0fa35f1e525c2d897ca77996439415817850d2..97d45d63a5227cb2173f935861a69f9e067e6c83 100644 (file)
@@ -1,8 +1,11 @@
 - job-template:
     name: 'oransc-{project-name}-verify-java'
-    node: oransc-ubuntu1804
+    node: oransc-ubuntu2004
     disabled: false
     concurrent: true
+    subdirectory: 
+    trigger_branch_pattern: '**'
+    trigger_files_path_pattern: '**'
 
     properties:
       - logrotate
           name: MVN
           default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
           description: Path to mvn executable
-
+      - string:
+          name: GO_PATH
+          default: '/usr/local/go/bin'
+          description: Path to go executable
+      - string:
+          name: SUBDIRECTORY
+          default: '{subdirectory}'
+          description: Subdirectory of the project
+      
     scm:
       - git-scm-gerrit:
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
@@ -41,8 +52,8 @@
     triggers:
       - nordix-gerrit-trigger-patchset-created:
           project: 'oransc/{project}'
-          branch: '**'
-          files: '**'
+          branch: '{trigger_branch_pattern}'
+          files: '{trigger_files_path_pattern}'
 
     wrappers:
       - build-timeout: