python templates for docker releases 33/1033/1
authorDR695H <dr695h@att.com>
Mon, 20 Feb 2017 22:06:47 +0000 (17:06 -0500)
committerDR695H <dr695h@att.com>
Mon, 20 Feb 2017 22:08:08 +0000 (17:08 -0500)
adding a job to pytyhon templates to handle docker pushes

Change-Id: I31bec7bf4cd79b42e799fc755492e159303a617b
Signed-off-by: DR695H <dr695h@att.com>
jjb/global-templates-python.yaml

index 90d6c90..a5c3b90 100644 (file)
 #     publishers:
 #       - ecomp-infra-shiplogs:
 #           maven-version: 'mvn33'
+
+- job-template:
+    name: '{project-name}-{stream}-docker-shell-daily'
+    project-type: freestyle
+    node: 'ubuntu1604-docker-8c-8g'
+
+    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'
+
+    wrappers:
+      - ecomp-infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      # 12 AM UTC
+      - timed: 'H 12 * * *'
+      - gerrit-trigger-release-manually:
+          server: '{server-name}'
+          project: '{project}'
+          branch: '{branch}'
+
+    builders:
+
+      - provide-maven-settings:
+          global-settings-file: 'global-settings'
+          settings-file: '{mvn-settings}'
+
+      - docker-login
+
+      - shell: !include-raw: include-docker-push.sh