Update ric-app/hw-go jjb 84/6384/1
authorsubhash kumar singh <subh.singh@samsung.com>
Tue, 22 Jun 2021 20:35:08 +0000 (02:05 +0530)
committersubhash kumar singh <subh.singh@samsung.com>
Tue, 22 Jun 2021 20:39:16 +0000 (02:09 +0530)
update ric-app/hw-go jjb to push docker image from staging to release.

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: Iedff36c9578c87edc3fcec887e2dcd8d6bba9cbf

jjb/ric-app-hw-go/ric-app-hw-go.yaml

index d5b307c..0e8693b 100644 (file)
@@ -23,6 +23,7 @@
     jobs:
       - gerrit-info-yaml-verify
 
+# create docker image when source changes
 - project:
     <<: *hw-go_common
     name: ric-app-hw-go
     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-go_common
+    name: ric-app-hw-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'