mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Update image-generation.yml
This commit is contained in:
@@ -18,14 +18,11 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
|
Write-Host "Clean up default repository"
|
||||||
Remove-Item -path './*' -Recurse -Force
|
Remove-Item -path './*' -Recurse -Force
|
||||||
Write-Host "Download $(CUSTOM_REPOSITORY_BRANCH) branch from $(CUSTOM_REPOSITORY_URL)"
|
Write-Host "Download $(CUSTOM_REPOSITORY_BRANCH) branch from $(CUSTOM_REPOSITORY_URL)"
|
||||||
$env:GIT_REDIRECT_STDERR = '2>&1'
|
$env:GIT_REDIRECT_STDERR = '2>&1'
|
||||||
git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1
|
git clone $(CUSTOM_REPOSITORY_URL) . -b $(CUSTOM_REPOSITORY_BRANCH) --single-branch --depth 1
|
||||||
# git
|
|
||||||
# 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
|
- task: PowerShell@2
|
||||||
displayName: 'Build VM'
|
displayName: 'Build VM'
|
||||||
|
|||||||
Reference in New Issue
Block a user