-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
24 lines (24 loc) · 1.66 KB
/
project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: vmx_test_lab_0.3
description: MPLS lab that can be used to test various management software
action:
- category: BUILD
name: Build
jenkins_url: build_vmx_lab
configuration:
shell_command: write_yaml_files.py; docker run -u root -v "/var/nita_project:/project:rw" -v "/var/nita_configs:/var/tmp/build:rw" --rm --name ansible juniper/nita-ansible:20.10-1 /bin/bash -c "cd ${WORKSPACE}; bash build.sh ${build_dir}"
- category: BUILD
name: Base Build
jenkins_url: base_build_vmx_lab
configuration:
shell_command: write_yaml_files.py; docker run -u root -v "/var/nita_project:/project:rw" -v "/var/nita_configs:/var/tmp/build:rw" --rm --name ansible juniper/nita-ansible:20.10-1 /bin/bash -c "cd ${WORKSPACE}; bash base_build.sh ${build_dir}"
- category: BUILD
name: Dump configuration
jenkins_url: dump_vmx_lab
configuration:
shell_command: write_yaml_files.py; docker run -u root -v "/var/nita_project:/project:rw" -v "/var/nita_configs:/var/tmp/build:rw" --rm --name ansible juniper/nita-ansible:20.10-1 /bin/bash -c "cd ${WORKSPACE}; bash dump.sh ${build_dir}"
- category: TEST
name: Test
jenkins_url: test_vmx_lab
configuration:
output_path: test/outputs/
shell_command: write_yaml_files.py; docker run -u root -v "/var/nita_project:/project:rw" -v "/var/nita_configs:/var/tmp/build:rw" --rm --name ansible juniper/nita-ansible:20.10-1 /bin/bash -c "cd ${WORKSPACE}; bash test_setup.sh ${build_dir}" write_yaml_files.py; docker run -u root -v "/var/nita_project:/project:rw" -v "/var/nita_configs:/var/tmp/build:rw" --rm --name robot -e ROBOT_OPTIONS="-d ${PWD}/test/outputs" juniper/nita-robot:20.10-1 /bin/bash -c "cd ${WORKSPACE}; bash test.sh"