Add trigger file paths for ric_robot_suite 72/572/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Fri, 26 Jul 2019 17:00:19 +0000 (13:00 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Fri, 26 Jul 2019 17:00:19 +0000 (13:00 -0400)
Also repair the docker root, container file path params.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ic12a7b59e3d5f402e374f7edd7c9bb0d193175be

jjb/it-test/it-test.yaml

index 4089b63..491fcee 100644 (file)
     project-name: '{name}'
     # image name
     docker-name: '{name}'
-    # subdirectory
-    docker-root: 'ric_robot_suite/docker/nanobot'
+    # start in parent directory with shared files
+    docker-root: ric_robot_suite
+    # dockerfile is in subdir of docker root
+    docker-build-args: -f docker/nanobot/Dockerfile
+    # tag file is in subdir
+    container-tag-yaml-dir: ric_robot_suite/docker/nanobot
     # maven settings file has docker credentials
     mvn-settings: it-test-settings
+    # build only on relevant changes
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'ric_robot_suite/.*'
     jobs:
       - '{project-name}-gerrit-docker-jobs'
     <<: *it_test_common
     project-name: '{name}'
     # image name
     docker-name: '{name}'
-    # subdirectory
-    docker-root: 'ric_robot_suite/docker/ric-robot'
+    # start in parent directory with shared files
+    docker-root: ric_robot_suite
+    # dockerfile is in subdir of docker root
+    docker-build-args: -f docker/ric-robot/Dockerfile
+    # tag file is in subdir
+    container-tag-yaml-dir: ric_robot_suite/docker/ric-robot
     # maven settings file has docker credentials
     mvn-settings: it-test-settings
+    # build only on relevant changes
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'ric_robot_suite/.*'
     jobs:
       - '{project-name}-gerrit-docker-jobs'
     <<: *it_test_common