Skip to content

Commit 78fa3f0

Browse files
azure-sdkbenbpweshaggard
authored
Sync eng/common directory with azure-sdk-tools for PR 2009 (Azure#23971)
* Skip PSModule caching in container jobs * Add succeeded check to condition Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com> Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> Co-authored-by: Ben Broderick Phillips <ben@benbp.net> Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
1 parent 9b536ea commit 78fa3f0

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)