Add jobs to build a docker image for ric-app/ts 52/3552/3
authorE. Scott Daniels <daniels@research.att.com>
Thu, 30 Apr 2020 16:05:40 +0000 (12:05 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Thu, 30 Apr 2020 16:44:06 +0000 (12:44 -0400)
New verify and merge jobs for the traffic steering xApplication

Issue-ID: RIC-349
Change-Id: Ie23659469b57cf7d1c08ee6ee629f1910930e53b
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
jjb/ric-app-ts/ric-app-ts.yaml

index 0838d4b..f6d389d 100644 (file)
@@ -5,10 +5,41 @@
     views:
       - project-view
 
-- project:
-    name: ric-app-ts-info
+- ts_common: &ts_common
+    # values apply to all projects
+    name: ts-common
+    # git repo
     project: ric-app/ts
+    # jenkins prefix
     project-name: ric-app-ts
+    # maven settings file has docker credentials
+    mvn-settings: ric-app-ts-settings
+
+# verify INFO.yaml changes
+- project:
+    <<: *ts_common
+    name: ric-app-ts-verify
     build-node: centos7-builder-1c-1g
     jobs:
       - gerrit-info-yaml-verify
+
+# create docker image when source changes
+- project:
+    <<: *ts_common
+    # also used as image name
+    name: ric-app-ts
+    # 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