diff --git a/.azure-pipelines/run-test-template.yml b/.azure-pipelines/run-test-template.yml index 2ab707287c7c..2a75d1bc32dc 100644 --- a/.azure-pipelines/run-test-template.yml +++ b/.azure-pipelines/run-test-template.yml @@ -7,6 +7,9 @@ parameters: type: string - name: ptf_name type: string +- name: vmtype + type: string + default: 'ceos' - name: section type: string default: '' @@ -41,7 +44,7 @@ steps: git reset --hard origin/master sed -i s/use_own_value/${username}/ ansible/veos_vtb echo aaa > ansible/password.txt - docker exec sonic-mgmt bash -c "pushd /data/sonic-mgmt/ansible;./testbed-cli.sh -d /data/sonic-vm -m $(inventory) -t $(testbed_file) -k ceos refresh-dut ${{ parameters.tbname }} password.txt" && sleep 180 + docker exec sonic-mgmt bash -c "pushd /data/sonic-mgmt/ansible;./testbed-cli.sh -d /data/sonic-vm -m $(inventory) -t $(testbed_file) -k ${{ parameters.vmtype }} refresh-dut ${{ parameters.tbname }} password.txt" && sleep 180 displayName: "Setup testbed" - script: | diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 27836a49b1ab..798c5b5f6432 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -191,3 +191,17 @@ stages: tbname: vms-kvm-t1-lag ptf_name: ptf_vms6-2 tbtype: t1-lag + + - job: + pool: sonictest-sonic-t0 + displayName: "kvmtest-t0-sonic" + timeoutInMinutes: 360 + + steps: + - template: .azure-pipelines/run-test-template.yml + parameters: + dut: vlab-02 + tbname: vms-kvm-t0-64-32 + ptf_name: ptf_vms6-1 + tbtype: t0-sonic + vmtype: vsonic