Setup docker-compose-verify job template 59/104759/2
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 31 Mar 2020 13:43:45 +0000 (06:43 -0700)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 1 Apr 2020 08:40:11 +0000 (08:40 +0000)
Providing job template to perform Docker Compose
based projects verification.

Change-Id: Ie806fe0078d1a12c7c16b6164b4fe271f9493f70
Issue-ID: INT-1508
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
jjb/integration/integration-templates-docker.yaml

index 0bf3097..6ef2fc6 100644 (file)
       - infra-shiplogs:
           maven-version: '{maven-version}'
 
+
+- job-template:
+    name: '{project-name}-{stream}-{subproject}-docker-compose-verify'
+    project-type: freestyle
+    description: 'This job validates Docker Compose based projects'
+    node: 'ubuntu1804-docker-8c-8g'
+    docker_root: '$WORKSPACE'
+
+    parameters:
+      - lf-infra-parameters:
+          project: '{project}'
+          stream: '{stream}'
+          branch: '{branch}'
+
+    properties:
+      - infra-properties:
+          build-days-to-keep: '{build-days-to-keep}'
+
+    scm:
+      - gerrit-trigger-scm:
+          refspec: '$GERRIT_REFSPEC'
+          choosing-strategy: 'gerrit'
+          submodule-recursive: '{submodule-recursive}'
+
+    wrappers:
+      - infra-wrappers:
+          build-timeout: '{build-timeout}'
+
+    triggers:
+      - gerrit-trigger-patch-submitted:
+          server: '{server-name}'
+          project: '{project}'
+          branch: '{branch}'
+          files: '{pattern}'
+
+    builders:
+      - inject:
+          properties-content: |
+            DOCKER_ROOT={docker_root}
+      - shell: '{script}'
+
+    publishers:
+      - lf-infra-publish