test: ui test use secret and include branch (#27433)

* test: ui test use secret and include branch

* fix argos token
This commit is contained in:
骗你是小猫咪 2020-10-29 11:50:49 +08:00 committed by GitHub
parent a674541260
commit 204d2e342a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,9 @@ name: Ant Design
trigger:
branches:
exclude:
- gh-pages
include:
- master
- feature
# https://developercommunity.visualstudio.com/comments/949241/view.html
pr:
@ -67,6 +68,7 @@ stages:
- stage: ui
variables:
ARGOSTOKEN: $(ARGOS_TOKEN)
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}:
branchName: $[ replace(variables['Build.SourceBranch'], 'refs/heads/', '') ]
commitId: $(Build.SourceVersion)
@ -91,5 +93,5 @@ stages:
displayName: 'Install modules'
- script: npm run test-image
displayName: 'UI Test'
- script: npm run argos -- --token $ARGOS_TOKEN --branch $(branchName) --commit $(commitId)
- script: npm run argos -- --token $(ARGOSTOKEN) --branch $(branchName) --commit $(commitId)
displayName: 'Upload to argos-ci'