From 6aeaad42ea055ec3720666015c910750e7d454b0 Mon Sep 17 00:00:00 2001 From: MaksimZhukov Date: Tue, 18 Feb 2020 15:37:23 +0300 Subject: [PATCH] Add step with download custom repository --- images.CI/azure-pipelines/image-generation.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images.CI/azure-pipelines/image-generation.yml b/images.CI/azure-pipelines/image-generation.yml index 2f9840b60..459b55c37 100644 --- a/images.CI/azure-pipelines/image-generation.yml +++ b/images.CI/azure-pipelines/image-generation.yml @@ -6,6 +6,13 @@ jobs: - group: Image Generation Variables steps: + - pwsh: | + Remove-Item -path './*' -Recurse -Force + Write-Host "Download $(BRANCH_NAME) branch from $(IMAGE_GEN_REPO_URI)" + git clone $(IMAGE_GEN_REPO_URI) . -b $(BRANCH_NAME) --single-branch --depth 1 + displayName: 'Download custom repository' + condition: and(ne(variables['BRANCH_NAME'], ''), ne(variables['IMAGE_GEN_REPO_URI'], '')) + - task: PowerShell@2 displayName: 'Build VM' inputs: