Merge pull request #13 from akv-platform/v-mazhuk/fix-github-issue

Fix Git issue
This commit is contained in:
MaksimZhukov
2020-02-21 10:53:09 +03:00
committed by GitHub

View File

@@ -14,7 +14,9 @@ jobs:
script: |
Remove-Item -path './*' -Recurse -Force
Write-Host "Download $(CUSTOM_REPOSITORY_BRANCH) branch from $(CUSTOM_REPOSITORY_URL)"
git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1
# git on self-hosted agent produces some output to stderr even during successful cloning
# use cmd output redirect to overcome it
cmd /c "git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1 2>&1"
- task: PowerShell@2
displayName: 'Build VM'