From 204d2e342a70deafffadfbb3187284f895104989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=97=E4=BD=A0=E6=98=AF=E5=B0=8F=E7=8C=AB=E5=92=AA?= Date: Thu, 29 Oct 2020 11:50:49 +0800 Subject: [PATCH] test: ui test use secret and include branch (#27433) * test: ui test use secret and include branch * fix argos token --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 04419f29fe..c0dead5a50 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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'