Added multiplatform jobs for policy-api image
This is a follow-up to patch https://gerrit.onap.org/r/c/ci-management/+/92707
Modified the policy-api project to use the multi-arch templates on
master branch
Issue-ID: CIMAN-217
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
Change-Id: I4d68dbde3c3b959c8323cb02e5e935aa18be8c4d
diff --git a/jjb/policy/policy-api.yaml b/jjb/policy/policy-api.yaml
index ea20cea..8a13714 100644
--- a/jjb/policy/policy-api.yaml
+++ b/jjb/policy/policy-api.yaml
@@ -1,6 +1,6 @@
---
- project:
- name: policy-api
+ name: policy-api-elalto
project-name: 'policy-api'
jobs:
- '{project-name}-{stream}-verify-java'
@@ -23,8 +23,6 @@
project: 'policy/api'
stream:
- - 'master':
- branch: 'master'
- 'elalto':
branch: 'elalto'
mvn-settings: 'policy-api-settings'
@@ -33,6 +31,65 @@
build-node: ubuntu1604-builder-4c-4g
- project:
+ name: policy-api
+ project-name: 'policy-api'
+ jobs:
+ - '{project-name}-{stream}-verify-java'
+ - '{project-name}-{stream}-merge-java':
+ project-name: 'policy-api-amd64'
+ docker-pom: 'pom.xml'
+ mvn-params: '-P docker -Ddocker.pull.registry=docker.io -Ddocker.push.registry=registry-1.docker.io'
+ build-node: ubuntu1604-docker-8c-8g
+ pattern: 'do_not_match_any_file'
+ - '{project-name}-{stream}-merge-java':
+ project-name: 'policy-api-arm64'
+ docker-pom: 'pom.xml'
+ mvn-params: '-P docker -Dmaven.test.skip=true -Ddocker.pull.registry=docker.io -Ddocker.push.registry=registry-1.docker.io'
+ build-node: ubuntu1604-docker-arm64-4c-2g
+ pattern: 'do_not_match_any_file'
+ - '{project-name}-multiarch-{stream}-merge-java'
+ - gerrit-maven-stage:
+ sign-artifacts: true
+ build-node: centos7-builder-4c-4g
+ maven-versions-plugin: true
+ - gerrit-maven-docker-stage:
+ project-name: 'policy-api-amd64'
+ build-node: ubuntu1604-docker-8c-8g
+ maven-versions-plugin: true
+ mvn-params: '-P docker -Dmaven.test.skip=true -Ddocker.pull.registry=docker.io -Ddocker.push.registry=registry-1.docker.io'
+ container-public-registry: 'docker.io'
+ container-staging-registry: 'docker.io'
+ cron: ''
+ gerrit_trigger_file_paths:
+ - compare-type: REG_EXP
+ pattern: 'do_not_match_any_file'
+ - gerrit-maven-docker-stage:
+ project-name: 'policy-api-arm64'
+ build-node: ubuntu1604-docker-arm64-4c-2g
+ maven-versions-plugin: true
+ mvn-params: '-P docker -Dmaven.test.skip=true -Ddocker.pull.registry=docker.io -Ddocker.push.registry=registry-1.docker.io'
+ container-public-registry: 'docker.io'
+ container-staging-registry: 'docker.io'
+ cron: ''
+ gerrit_trigger_file_paths:
+ - compare-type: REG_EXP
+ pattern: 'do_not_match_any_file'
+ - '{project-name}-docker-manifest-{stream}':
+ build-node: ubuntu1604-docker-8c-8g
+ - '{project-name}-multiarch-docker-stage-{stream}'
+# - '{project-name}-gerrit-release-jobs':
+# build-node: centos7-docker-8c-8g
+
+ project: 'policy/api'
+ stream:
+ - 'master':
+ branch: 'master'
+ mvn-settings: 'policy-api-settings'
+ files: '**'
+ archive-artifacts: ''
+ build-node: ubuntu1604-builder-4c-4g
+
+- project:
name: policy-api-sonar
jobs:
- gerrit-maven-sonar