Skip to content

Commit

Permalink
[CI] Update base test-generation pipeline to use AzureCLI task (actio…
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-bershel authored and guicaulada committed Jun 11, 2024
1 parent 51e4095 commit 6ea2249
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions images.CI/linux-and-win/azure-pipelines/image-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ jobs:
arguments: -RepoUrl $(CUSTOM_REPOSITORY_URL) `
-RepoBranch $(CUSTOM_REPOSITORY_BRANCH)

- task: AzurePowerShell@5
- task: AzureCLI@2
displayName: 'Set variables'
inputs:
TargetAzurePs: LatestVersion
azureSubscription: 'spn-hosted-runners'
ScriptType: 'InlineScript'
Inline: |
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
$ImageType = "${{ parameters.image_type }}"
$TemplateDirectoryName = if ($ImageType.StartsWith("ubuntu")) { "ubuntu/templates" } else { "windows/templates" }
$TemplateDirectoryPath = Join-Path "images" $TemplateDirectoryName | Resolve-Path
Expand Down

0 comments on commit 6ea2249

Please sign in to comment.