Skip to content

Commit c80e26e

Browse files
azure-sdkbenbpweshaggard
authored
Sync eng/common directory with azure-sdk-tools for PR 2009 (Azure#20672)
* Skip PSModule caching in container jobs * Add succeeded check to condition Co-authored-by: Wes Haggard <[email protected]> Co-authored-by: Ben Broderick Phillips <[email protected]> Co-authored-by: Ben Broderick Phillips <[email protected]> Co-authored-by: Wes Haggard <[email protected]>
1 parent 1efff7f commit c80e26e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

eng/common/pipelines/templates/steps/cache-ps-modules.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ steps:
33
. ./eng/common/scripts/Helpers/PSModule-Helpers.ps1
44
Write-Host "##vso[task.setvariable variable=CachedPSModulePath]$global:CurrentUserModulePath"
55
displayName: Set PS Modules Cache Directory
6+
# Containers should bake modules into the image to save on pipeline time
7+
condition: and(succeeded(), eq(variables['Container'], ''))
68
- task: Cache@2
79
inputs:
810
key: 'PSModulePath | $(CacheSalt) | $(Agent.OS) | $(Build.SourcesDirectory)/eng/common/scripts/Import-AzModules.ps1'
911
path: $(CachedPSModulePath)
10-
displayName: Cache PS Modules
12+
displayName: Cache PS Modules
13+
# Containers should bake modules into the image to save on pipeline time
14+
condition: and(succeeded(), eq(variables['Container'], ''))

0 commit comments

Comments
 (0)