Reduce repeated key-value pairs
[ci-management.git] / jjb / it-test / it-test.yaml
1 ---
2 - project:
3     name: it-test-project-view
4     project-name: it-test
5     views:
6       - project-view
7
8 - project:
9     name: it-test-info
10     project: it/test
11     project-name: it-test
12     build-node: centos7-builder-1c-1g
13     jobs:
14       - gerrit-info-yaml-verify
15
16 - it_test_common: &it_test_common
17     # values apply to all it/test docker projects
18     name: it-test-docker-common
19     # git repo
20     project: it/test
21     # source of docker tag
22     container-tag-method: yaml-file
23     # use host network to clone from our gerrit
24     docker-build-args: '--network=host'
25     # maven settings file has docker credentials
26     mvn-settings: it-test-settings
27     jobs:
28       - '{project-name}-gerrit-docker-jobs'
29     stream:
30       - master:
31           branch: master
32
33 - project:
34     <<: *it_test_common
35     name: it-test-nanobot
36     # jenkins job name prefix
37     project-name: '{name}'
38     # image name
39     docker-name: '{name}'
40     # start in parent directory with shared files
41     docker-root: ric_robot_suite
42     # dockerfile is in subdir of docker root
43     docker-build-args: -f docker/nanobot/Dockerfile
44     # tag file is in subdir
45     container-tag-yaml-dir: ric_robot_suite/docker/nanobot
46     # build only on relevant changes
47     gerrit_trigger_file_paths:
48       - compare-type: REG_EXP
49         pattern: '{docker-root}/.*'
50
51 - project:
52     <<: *it_test_common
53     name: it-test-ric-robot
54     # jenkins job name prefix
55     project-name: '{name}'
56     # image name
57     docker-name: '{name}'
58     # start in parent directory with shared files
59     docker-root: ric_robot_suite
60     # dockerfile is in subdir of docker root
61     docker-build-args: -f docker/ric-robot/Dockerfile
62     # tag file is in subdir
63     container-tag-yaml-dir: ric_robot_suite/docker/ric-robot
64     # build only on relevant changes
65     gerrit_trigger_file_paths:
66       - compare-type: REG_EXP
67         pattern: '{docker-root}/.*'