From c652d4a153a14aef74b68f744761bd0aa3a07d22 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Fri, 22 Sep 2017 13:33:42 -0700 Subject: Add docker verify/merge jobs for sniroemulator Change-Id: I32e2e0ef23cfc5f1e93c42ae2ecc17e1db7b0b56 Issue-ID: INT-215 Signed-off-by: Gary Wu --- jjb/integration/integration-docker.yaml | 19 ++++ jjb/integration/integration-templates-docker.yaml | 127 ++++++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 jjb/integration/integration-docker.yaml create mode 100644 jjb/integration/integration-templates-docker.yaml diff --git a/jjb/integration/integration-docker.yaml b/jjb/integration/integration-docker.yaml new file mode 100644 index 000000000..92125d4ff --- /dev/null +++ b/jjb/integration/integration-docker.yaml @@ -0,0 +1,19 @@ +--- +- project: + name: integration-docker + project-name: 'integration' + jobs: + - '{project-name}-{stream}-{subproject}-docker-merge' + - '{project-name}-{stream}-{subproject}-docker-verify' + project: 'integration' + stream: + - 'master': + branch: 'master' + subproject: + - 'sniroemulator': + pom: 'test/mocks/sniroemulator/pom.xml' + pattern: 'test/mocks/sniroemulator/**' + mvn-settings: 'integration-settings' + files: '**' + archive-artifacts: '' + build-node: ubuntu1604-basebuild-4c-4g diff --git a/jjb/integration/integration-templates-docker.yaml b/jjb/integration/integration-templates-docker.yaml new file mode 100644 index 000000000..c8041a2a8 --- /dev/null +++ b/jjb/integration/integration-templates-docker.yaml @@ -0,0 +1,127 @@ +--- +- job-template: + name: '{project-name}-{stream}-{subproject}-docker-merge' + project-type: freestyle + node: 'ubuntu1604-docker-8c-8g' + docker-image-name: '' + + properties: + - infra-properties: + build-days-to-keep: '{build-days-to-keep}' + + parameters: + - infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' + - maven-exec: + maven-version: '{maven-version}' + - docker-image-name: + docker-image-name: '{docker-image-name}' + + scm: + - gerrit-trigger-scm: + refspec: '' + choosing-strategy: 'default' + submodule-recursive: '{submodule-recursive}' + + wrappers: + - infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + # 12 AM UTC + - timed: 'H 12 * * *' + - gerrit-trigger-patch-merged: + server: '{server-name}' + project: '{project}' + branch: '{branch}' + files: '{pattern}' + + builders: + + - provide-maven-settings: + global-settings-file: 'global-settings' + settings-file: '{mvn-settings}' + + - docker-login + + - maven-target: + maven-version: '{maven-version}' + pom: '{pom}' + goals: 'clean package docker:build docker:push' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + properties: + - docker.pull.registry=nexus3.onap.org:10001 + - docker.push.registry=nexus3.onap.org:10003 + + publishers: + - infra-shiplogs: + maven-version: '{maven-version}' + +- job-template: + name: '{project-name}-{stream}-{subproject}-docker-verify' + project-type: freestyle + node: 'ubuntu1604-docker-8c-8g' + docker-image-name: '' + + properties: + - infra-properties: + build-days-to-keep: '{build-days-to-keep}' + + parameters: + - infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' + - maven-exec: + maven-version: '{maven-version}' + - docker-image-name: + docker-image-name: '{docker-image-name}' + + scm: + - gerrit-trigger-scm: + refspec: '' + choosing-strategy: 'default' + 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: + + - provide-maven-settings: + global-settings-file: 'global-settings' + settings-file: '{mvn-settings}' + + - docker-login + + - maven-target: + maven-version: '{maven-version}' + pom: '{pom}' + goals: 'clean package docker:build' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + properties: + - docker.pull.registry=nexus3.onap.org:10001 + - docker.push.registry=nexus3.onap.org:10003 + + publishers: + - infra-shiplogs: + maven-version: '{maven-version}' + -- cgit 1.2.3-korg