[202012][prtest] use matching sonic-mgmt branch for 202012 branch PR tests (#11575)

Why I did it
202012 PR test is failing due to some recent change in sonic-mgmt master branch.

How I did it
Use matching sonic-mgmt branch to run 202012 branch PR tests.

How to verify it
this PR test.

Signed-off-by: Ying Xie ying.xie@microsoft.com
This commit is contained in:
Ying Xie 2022-07-29 11:09:12 -07:00 committed by GitHub
parent c5a5734242
commit 84a8bad821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ parameters:
steps:
- checkout: self
clean: true
displayName: 'checkout sonic-mgmt repo'
displayName: 'checkout sonic-buildimage repo'
- task: DownloadPipelineArtifact@2
inputs:
@ -31,7 +31,7 @@ steps:
pushd /data/sonic-mgmt
git remote update
git reset --hard origin/master
git reset --hard origin/202012
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