X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-app-hw%2Fric-app-hw.yaml;h=afb629721d779ac3e1d2d430e6ad90dbd2217afb;hb=refs%2Fheads%2Fmaster;hp=d8a3e08bcd8e52bfb8b6fa72dab4e3e0dbc83472;hpb=b619c6322e89a96a0f8255e743ce5f11313d6506;p=ci-management.git diff --git a/jjb/ric-app-hw/ric-app-hw.yaml b/jjb/ric-app-hw/ric-app-hw.yaml index d8a3e08b..81a35d52 100644 --- a/jjb/ric-app-hw/ric-app-hw.yaml +++ b/jjb/ric-app-hw/ric-app-hw.yaml @@ -5,10 +5,42 @@ 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 - build-node: centos7-builder-1c-1g + # maven settings file has docker credentials + mvn-settings: ric-app-hw-settings + +# 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: - - gerrit-info-yaml-verify + - "{project-name}-gerrit-release-jobs"