X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-app-hw-python%2Fric-app-hw-python.yaml;h=32d7f12d4f4ffad11a118ac4ed5485714d2a6ae1;hb=c27d74fc57b8d3f8acf91bffd89a3b8024497df2;hp=67549cfca4601b37c13b9d617a0fdf0f7e9ba1ee;hpb=d6002b27b4b610819cd65a7e7fa6551f9533cad0;p=ci-management.git diff --git a/jjb/ric-app-hw-python/ric-app-hw-python.yaml b/jjb/ric-app-hw-python/ric-app-hw-python.yaml index 67549cfc..32d7f12d 100644 --- a/jjb/ric-app-hw-python/ric-app-hw-python.yaml +++ b/jjb/ric-app-hw-python/ric-app-hw-python.yaml @@ -5,8 +5,7 @@ views: - project-view -- hw-python_common: &hw-python_common - # values apply to all projects +- _hw-python_common: &hw-python_common # values apply to all projects name: hw-python-common # git repo project: ric-app/hw-python @@ -22,3 +21,33 @@ build-node: centos7-builder-1c-1g jobs: - gerrit-info-yaml-verify + +# create docker image when source changes +- project: + <<: *hw-python_common + name: ric-app-hw-python + # image name + docker-name: "o-ran-sc/{name}" + # source of docker tag + container-tag-method: yaml-file + # use host network to clone from our gerrit + 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-python_common + name: ric-app-hw-python-release + # maven release requires sigul which requires centos + # container release requires docker + build-node: centos7-docker-2c-8g + jobs: + - "{project-name}-gerrit-release-jobs"