Add jenkins jobs for clamp-pilot repo
Change-Id: I42a683a3705c48b087d2d7f538b4e5e070abd97a
Signed-off-by: liamfallon <liam.fallon@est.tech>
diff --git a/jjb/local/global-templates-local-java.yaml b/jjb/local/global-templates-local-java.yaml
new file mode 100644
index 0000000..45715ec
--- /dev/null
+++ b/jjb/local/global-templates-local-java.yaml
@@ -0,0 +1,65 @@
+---
+# This is a java verify template for local repositories
+- job-template:
+ name: 'local-{project-name}-{stream}-verify-java'
+ disabled_job_var: false
+ node: onap-ubuntu1804
+
+ disabled: '{obj:disabled_job_var}'
+ concurrent: true
+ mvn_settings_xml_version:
+ mvn_params:
+ mvn_version: 3.5.4
+ properties:
+ - logrotate
+
+ parameters:
+ - project-parameters:
+ project: 'local/{project}'
+ branch: '{branch}'
+ - nordix-gerrit-parameters
+ - string:
+ name: JAVA_HOME
+ default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
+ description: Java home
+ - string:
+ name: MVN_VERSION
+ default: '{mvn_version}'
+ description: Maven version
+ - string:
+ name: MVN_URL
+ default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
+ description: URL to download Maven
+ - string:
+ name: MVN
+ default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
+ description: Path to mvn executable
+ - string:
+ name: MVN_SETTINGS_XML_VERSION
+ default: '{mvn_settings_xml_version}'
+ description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
+ - string:
+ name: MVN_PARAMS
+ default: '{mvn_params}'
+ description: Maven build parameters
+ scm:
+ - git-scm-gerrit:
+ ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+ branch: '{branch}'
+ refspec: $GERRIT_REFSPEC
+ wipe_workspace: true
+ clean_before: false
+
+ triggers:
+ - nordix-gerrit-trigger-patchset-created:
+ project: 'local/{project}'
+ branch: '{branch}'
+ files: '**'
+
+ wrappers:
+ - build-timeout:
+ timeout: 45
+
+ builders:
+ - shell:
+ !include-raw-escape: ./verify-jobs.sh