job for yang tools

Change-Id: Id3f78a5cccc5594628221a28ce57a804840a181f
diff --git a/jjb/onos/onos-verify.yaml b/jjb/onos/onos-verify.yaml
index bf30340..f77f1a9 100644
--- a/jjb/onos/onos-verify.yaml
+++ b/jjb/onos/onos-verify.yaml
@@ -102,6 +102,30 @@
     builders:
     #put shell scripts in file then make sure shell check is installed on verify vms
       - shell: !include-raw-escape: onos-verify.sh
+      # JJB 1.6.2 does not support parameter expansion on filename?
+      #- shell: !include-raw-escape: {project-name}-verify.sh
+
+# workaround for lack of parameter expansion support in shell: (see above)
+- job-template:
+    #default name is global
+    name: 'onos-yang-tools-{stream}-verify'
+
+    # Job template for Java verify jobs
+    #
+    # The purpose of this job templte is to run "maven clean install" for
+    # projects using this template.
+    #
+    # Required Variables:
+    #    branch:   git branch (eg. master)
+
+    <<: *job_boiler_plate
+    # yamllint disable-line rule:key-duplicates
+    <<: *verify_boiler_plate
+
+    builders:
+    #put shell scripts in file then make sure shell check is installed on verify vms
+      - shell: !include-raw-escape: onos-yang-tools-verify.sh
+
 
 - project:
     name: onos
@@ -116,3 +140,17 @@
 
     jobs:
       - '{project-name}-{stream}-verify'
+
+- project:
+    name: onos-yang-tools
+    project-name: onos-yang-tools
+    project: onos-yang-tools
+
+    build-timeout: '1800'
+    build-node: 'ubuntu16.04-basebuild-8c-15g'
+
+    stream:
+      - 'master'
+
+    jobs:
+      - 'onos-yang-tools-{stream}-verify'
diff --git a/jjb/onos/onos-yang-tools-verify.sh b/jjb/onos/onos-yang-tools-verify.sh
new file mode 100755
index 0000000..21335a7
--- /dev/null
+++ b/jjb/onos/onos-yang-tools-verify.sh
@@ -0,0 +1,11 @@
+#!/bin/bash -ex
+
+# FIXME include in base image?
+curl -o apache-maven-3.5.2-bin.tar.gz -L 'http://www.apache.org/dyn/closer.cgi?filename=maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz&action=download'
+tar xf apache-maven-3.5.2-bin.tar.gz
+PATH=`pwd`/apache-maven-3.5.2/bin:$PATH
+
+ONOS_ROOT=`pwd`
+. tools/build/envDefaults
+echo $PATH
+mvn clean install