From ff8bcbac8da6d53edbaede752526e0ed910ef684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 1 Feb 2019 14:55:50 +0800 Subject: [PATCH] use checkout config (#14682) * use checkout config * remove block * style(azure-pipelines.yml): prettier yml file --- azure-pipelines.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8ca97935f6..69afca3cc1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,12 +5,10 @@ name: ant design trigger: - - master - -resources: - repositories: - - repository: self - fetchDepth: 1 + batch: true + branches: + exclude: + - gh-pages jobs: - job: test_ @@ -18,7 +16,7 @@ jobs: vmImage: 'Ubuntu-16.04' strategy: matrix: - TEST_TYPE: + Lint: TEST_TYPE: lint dist-react@16: REACT: 16 @@ -51,6 +49,9 @@ jobs: REACT: 15 TEST_TYPE: test:node steps: + - checkout: self + fetchDepth: 1 + clean: false - task: NodeTool@0 inputs: versionSpec: '11.x' @@ -64,5 +65,5 @@ jobs: # 主分支,并且运行成功 condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) inputs: - pathtoPublish: './package-lock.json' - artifactName: lock + pathtoPublish: './package-lock.json' + artifactName: lock -- GitLab