Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip PSModule caching in container jobs #2009

Merged
2 commits merged into from
Sep 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion eng/common/pipelines/templates/steps/cache-ps-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ steps:
. ./eng/common/scripts/Helpers/PSModule-Helpers.ps1
Write-Host "##vso[task.setvariable variable=CachedPSModulePath]$global:CurrentUserModulePath"
displayName: Set PS Modules Cache Directory
# Containers should bake modules into the image to save on pipeline time
condition: eq(variables['Container'], '')
benbp marked this conversation as resolved.
Show resolved Hide resolved
- task: Cache@2
inputs:
key: 'PSModulePath | $(CacheSalt) | $(Agent.OS) | $(Build.SourcesDirectory)/eng/common/scripts/Import-AzModules.ps1'
path: $(CachedPSModulePath)
displayName: Cache PS Modules
displayName: Cache PS Modules
# Containers should bake modules into the image to save on pipeline time
condition: eq(variables['Container'], '')
benbp marked this conversation as resolved.
Show resolved Hide resolved