Skip to content

Commit

Permalink
[CI/CD] Update elastictest pr test template file, use long term maint…
Browse files Browse the repository at this point in the history
…ained token instead of personal access token (sonic-net#12940)

[CI/CD] Update elastictest pr test template file, use long term maintained token instead of personal access token.
Compatibility update, in order to ensure that all PRtests that use this template file can transition smoothly.

Signed-off-by: Chun'ang Li <[email protected]>
  • Loading branch information
lerry-lee authored May 23, 2024
1 parent 3982c7d commit 8c4ef94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .azure-pipelines/run-test-elastictest-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ steps:
# Else, internal build image repo, download from internal sonic-mgmt repo
else
curl -u $(AZP_REPO_ACCESS_TOKEN) "${{ parameters.MGMT_URL }}&commitOrBranch=${{ parameters.MGMT_BRANCH }}&api-version=5.0-preview.1&path=.azure-pipelines%2Fpr_test_scripts.yaml" -o ./.azure-pipelines/pr_test_scripts.yaml
if [ -z "$(MSSONIC-TOKEN)" ]; then
curl -u $(AZP_REPO_ACCESS_TOKEN) "${{ parameters.MGMT_URL }}&commitOrBranch=${{ parameters.MGMT_BRANCH }}&api-version=5.0-preview.1&path=.azure-pipelines%2Fpr_test_scripts.yaml" -o ./.azure-pipelines/pr_test_scripts.yaml
else
curl -u :$(MSSONIC-TOKEN) "${{ parameters.MGMT_URL }}&commitOrBranch=${{ parameters.MGMT_BRANCH }}&api-version=5.0-preview.1&path=.azure-pipelines%2Fpr_test_scripts.yaml" -o ./.azure-pipelines/pr_test_scripts.yaml
fi
fi
displayName: "Download pr script"
- ${{ else }}:
Expand Down

0 comments on commit 8c4ef94

Please sign in to comment.