X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-app-kpimon-go%2Fric-app-kpimon-go.yaml;h=232b176c769f70c2e798c73e4c3994adf4daec9a;hb=81f5157ea6bb9916e1ffd0dbfe1859270c3b859a;hp=2169c38df6137b7e8f4ed88a076d436de6b95883;hpb=14a3c175ef34fad30f50fa07ee2970c96e615ad0;p=ci-management.git diff --git a/jjb/ric-app-kpimon-go/ric-app-kpimon-go.yaml b/jjb/ric-app-kpimon-go/ric-app-kpimon-go.yaml index 2169c38d..232b176c 100644 --- a/jjb/ric-app-kpimon-go/ric-app-kpimon-go.yaml +++ b/jjb/ric-app-kpimon-go/ric-app-kpimon-go.yaml @@ -5,6 +5,17 @@ views: - project-view +- kpimon-go_common: &kpimon-go_common + # values apply to all projects + name: kpimon-go-common + # git repo + project: ric-app/kpimon-go + # jenkins prefix + project-name: ric-app-kpimon-go + # maven settings file has docker credentials + mvn-settings: ric-app-kpimon-go-settings + +# verify INFO.yaml changes when INFO.yaml changes - project: name: ric-app-kpimon-go-info project: ric-app/kpimon-go @@ -12,4 +23,35 @@ build-node: centos7-builder-1c-1g branch: master jobs: - - gerrit-info-yaml-verify \ No newline at end of file + - gerrit-info-yaml-verify + +# create docker image when source changes +- project: + <<: *kpimon-go_common + # also used as image name + name: ric-app-kpimon-go + # 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: + <<: *kpimon-go_common + name: ric-app-kpimon-go-release + # maven release requires sigul which requires centos + # container release requires docker + build-node: centos7-docker-2c-8g + jobs: + - '{project-name}-gerrit-release-jobs'