Add CI job for RICAPP Machine Learning 21/1621/2
authorwrider <lji@research.att.com>
Fri, 15 Nov 2019 21:53:34 +0000 (16:53 -0500)
committerLusheng Ji <lji@research.att.com>
Fri, 15 Nov 2019 22:02:28 +0000 (22:02 +0000)
The build has been verified in Jenkins sandbox:
https://jenkins.o-ran-sc.org/sandbox/me/my-views/view/all/job/ric-app-ml-docker-verify-master/

Change-Id: I94e31712fd1e34b2d08d335aa03513d89534fe32
Signed-off-by: wrider <lji@research.att.com>
jjb/ric-app-ml/ric-app-ml.yaml [new file with mode: 0644]

diff --git a/jjb/ric-app-ml/ric-app-ml.yaml b/jjb/ric-app-ml/ric-app-ml.yaml
new file mode 100644 (file)
index 0000000..88f4481
--- /dev/null
@@ -0,0 +1,44 @@
+---
+- project:
+    name: ric-app-ml-project-view
+    project-name: ric-app-ml
+    views:
+      - project-view
+
+- project:
+    name: ric-app-ml-info
+    project: ric-app/ml
+    project-name: ric-app-ml
+    build-node: centos7-builder-1c-1g
+    jobs:
+      - gerrit-info-yaml-verify
+
+- ric_app_ml_docker_common: &ric_app_ml_docker_common
+    # values apply to all ml docker projects
+    name: ric-app-ml-docker-common
+    # git repo
+    project: ric-app/ml
+    # jenkins job name prefix
+    project-name: ric-app-ml
+    # maven settings file has docker credentials
+    mvn-settings: ric-app-ml-settings
+
+- project:
+    <<: *ric_app_ml_docker_common
+    name: ric-app-ml
+    # image name
+    docker-name: '{name}'
+    # root of docker build
+    docker-root: AcumosXappAdapter
+    # source of docker tag
+    container-tag-method: yaml-file
+    # use host network to clone from our gerrit
+    docker-build-args: '--network=host'
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: '{docker-root}/.*'
+    jobs:
+      - '{project-name}-gerrit-docker-jobs'
+    stream:
+      - master:
+          branch: master