Skip to content

Commit

Permalink
Change step to PowerShell task
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimZhukov committed Feb 19, 2020
1 parent 82bdea2 commit 68bde64
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions images.CI/azure-pipelines/image-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ jobs:
- group: Image Generation Variables

steps:
- powershell: |
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
- task: PowerShell@2
displayName: 'Download custom repository'
condition: and(ne(variables['CUSTOM_REPOSITORY_BRANCH'], ''), ne(variables['CUSTOM_REPOSITORY_URL'], ''))
inputs:
targetType: 'inline'
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
- task: PowerShell@2
displayName: 'Build VM'
Expand Down

0 comments on commit 68bde64

Please sign in to comment.