From 81b0d20d1a1ae6133d4a8d47706a642c5ac5f648 Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Tue, 13 Aug 2019 21:15:38 -0700 Subject: [PATCH] Optimize checkout (#4982) * Explicit checkout on build step to test. * Adding checkout steps to test and analyze. --- eng/pipelines/templates/jobs/archetype-sdk-client.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 06ce79cd972cf..8d62e550fc7b4 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -56,6 +56,9 @@ jobs: JavaVersion: '1.11' steps: + - checkout: self + fetchDepth: 1 + - script: | echo "##vso[build.addbuildtag]Scheduled" displayName: 'Tag scheduled builds' @@ -87,6 +90,9 @@ jobs: vmImage: 'ubuntu-16.04' steps: + - checkout: self + fetchDepth: 1 + - task: UsePythonVersion@0 displayName: 'Use Python 3.6' inputs: @@ -222,6 +228,9 @@ jobs: vmImage: $(OSVmImage) steps: + - checkout: self + fetchDepth: 1 + - template: ../steps/verify-agent-os.yml parameters: OSName: $(OSName)