Add docker image building & push

Change-Id: I1e52ac81b8381b888fc2bc52075f6edc9e0e6d05
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index 039bc2e..370f616 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -303,3 +303,46 @@
 #     publishers:
 #       - ecomp-infra-shiplogs:
 #           maven-version: 'mvn33'
+
+- job-template:
+    name: '{project-name}-{stream}-docker-java-daily'
+    project-type: freestyle
+
+    properties:
+      - ecomp-infra-properties:
+          build-days-to-keep: '{build-days-to-keep}'
+
+    parameters:
+      - ecomp-infra-parameters:
+          project: '{project}'
+          branch: '{branch}'
+          refspec: 'refs/heads/{branch}'
+          artifacts: '{archive-artifacts}'
+
+    scm:
+      - gerrit-trigger-scm:
+          refspec: ''
+          choosing-strategy: 'default'
+
+      - git-extra-project:
+          refspec: 'refs/heads/{extra-branch}'
+          project: '{extra-project}'
+          branch: '{extra-branch}'
+          checkout-dir: '{extra-checkout-dir}'
+
+    wrappers:
+      - ecomp-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      # 11 AM UTC
+      - timed: 'H 12 * * *'
+
+    builders:
+      - provide-maven-settings:
+          global-settings-file: 'global-settings'
+          settings-file: '{mvn-settings}'
+      - maven-docker-push-daily:
+          profile-name: '{profile-name}'
+          mvn-settings: '{mvn-settings}'
+          pom: '{docker-pom}'