Reduce repeated key-value pairs
- Move common pairs like project, project-name to local
common macros
- Add values to defaults.yaml like container-push-registry
to avoid repetition in project templates
- Drop unused docker templates; the base image was
renamed to bldr-alpine3
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ia212df85acf4bbb5264e22ab9606a9125e47dc2d
diff --git a/jjb/ric-plt-dbaas/ric-plt-dbaas.yaml b/jjb/ric-plt-dbaas/ric-plt-dbaas.yaml
index 4cd3390..0fc854b 100644
--- a/jjb/ric-plt-dbaas/ric-plt-dbaas.yaml
+++ b/jjb/ric-plt-dbaas/ric-plt-dbaas.yaml
@@ -5,44 +5,35 @@
views:
- project-view
-- dbaas_docker_common: &dbaas_docker_common
- # values apply to all RIC docker-build projects.
- # factored out in case this needs multiple projects.
- # use a specific name to prevent reuse attempts
- # bcos anchors don't cross document boundaries.
- name: dbaas-docker-common
- build-node: ubuntu1804-docker-4c-4g
- # pull from the public mirror + releases registry
- container-public-registry: nexus3.o-ran-sc.org:10001
- # push to the staging repo bcos all builds are RCs
- container-push-registry: nexus3.o-ran-sc.org:10004
- # source of docker tag
- container-tag-method: yaml-file
- stream:
- - master:
- branch: master
-
-- project:
- name: ric-plt-dbaas
- # git repo
- project: ric-plt/dbaas
- # jenkins job name prefix
- project-name: '{name}'
- # image name
- docker-name: '{name}'
- # Specify docker file and host network
- docker-build-args: '--network=host -f docker/Dockerfile.redis'
- # maven settings file has docker credentials
- mvn-settings: ric-plt-dbaas-settings
- jobs:
- - '{project-name}-gerrit-docker-jobs'
- <<: *dbaas_docker_common
-
- project:
name: ric-plt-dbaas-info
project: ric-plt/dbaas
project-name: ric-plt-dbaas
build-node: centos7-builder-1c-1g
-
jobs:
- gerrit-info-yaml-verify
+
+- dbaas_docker_common: &dbaas_docker_common
+ # values apply to all dbaas docker projects
+ name: dbaas-docker-common
+ # git repo
+ project: ric-plt/dbaas
+ # jenkins job name prefix
+ project-name: ric-plt-dbaas
+ # maven settings file has docker credentials
+ mvn-settings: ric-plt-dbaas-settings
+
+- project:
+ <<: *dbaas_docker_common
+ name: ric-plt-dbaas
+ # image name
+ docker-name: '{name}'
+ # Specify docker file and host network
+ docker-build-args: '--network=host -f docker/Dockerfile.redis'
+ # source of docker tag
+ container-tag-method: yaml-file
+ jobs:
+ - '{project-name}-gerrit-docker-jobs'
+ stream:
+ - master:
+ branch: master