From 4b168222b4d63df4a663e6b2989cd714cbc273c7 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Tue, 31 Mar 2020 06:43:45 -0700 Subject: Setup docker-compose-verify job template Providing job template to perform Docker Compose based projects verification. Change-Id: Ie806fe0078d1a12c7c16b6164b4fe271f9493f70 Issue-ID: INT-1508 Signed-off-by: Bartek Grzybowski --- jjb/integration/integration-templates-docker.yaml | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'jjb') diff --git a/jjb/integration/integration-templates-docker.yaml b/jjb/integration/integration-templates-docker.yaml index 0bf309756..6ef2fc600 100644 --- a/jjb/integration/integration-templates-docker.yaml +++ b/jjb/integration/integration-templates-docker.yaml @@ -123,3 +123,46 @@ - 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 -- cgit 1.2.3-korg