From 5196ecbedee9d431cf3e563f26463fde4be7817e Mon Sep 17 00:00:00 2001 From: "E. Scott Daniels" Date: Wed, 20 May 2020 09:04:49 -0400 Subject: [PATCH] Add image build and release for hello world xAPP This change adds the needed job descriptions to build and release the Docker images for the hello world xAPP Issue-ID: RICAPP-106 Signed-off-by: E. Scott Daniels Change-Id: Id66ac4b1cdab4b7c8817abdfa20d397e5d7c6f86 --- jjb/ric-app-hw/ric-app-hw.yaml | 45 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/jjb/ric-app-hw/ric-app-hw.yaml b/jjb/ric-app-hw/ric-app-hw.yaml index d8a3e08b..afb62972 100644 --- a/jjb/ric-app-hw/ric-app-hw.yaml +++ b/jjb/ric-app-hw/ric-app-hw.yaml @@ -5,10 +5,51 @@ views: - project-view -- project: - name: ric-app-hw-info +- hw_common: &hw_common + # values apply to all projects + name: hw-common + # git repo project: ric-app/hw + # jenkins prefix project-name: ric-app-hw + # maven settings file has docker credentials + mvn-settings: ric-app-hw-settings + +# verify INFO.yaml changes +- project: + <<: *hw_common + name: ric-app-hw-info build-node: centos7-builder-1c-1g jobs: - gerrit-info-yaml-verify + +# create docker image when source changes +- project: + <<: *hw_common + # also used as image name + name: ric-app-hw + # image name + docker-name: 'o-ran-sc/{name}' + # source type of image tag + container-tag-method: yaml-file + # use host network + docker-build-args: '--network=host' + # trigger on any change other than a file in ./docs + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: '^((?!docs/|\/COMMIT_MSG).)*$' + jobs: + - '{project-name}-gerrit-docker-jobs' + stream: + - master: + branch: master + +# push nexus image from staging to release +- project: + <<: *hw_common + name: ric-app-hw-release + # maven release requires sigul which requires centos + # container release requires docker + build-node: centos7-docker-2c-8g + jobs: + - '{project-name}-gerrit-release-jobs' -- 2.16.6