File: cache-ps-modules.yml

package info (click to toggle)
python-azure 20251014%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 766,472 kB
  • sloc: python: 6,314,744; ansic: 804; javascript: 287; makefile: 198; sh: 198; xml: 109
file content (14 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
steps:
- pwsh: |
    . ./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: and(succeeded(), eq(variables['Container'], ''))
- task: Cache@2
  inputs:
    key: 'PSModulePath | $(CacheSalt) | $(Agent.OS) | $(Build.SourcesDirectory)/eng/common/scripts/Import-AzModules.ps1'
    path: $(CachedPSModulePath)
  displayName: Cache PS Modules
  # Containers should bake modules into the image to save on pipeline time
  condition: and(succeeded(), eq(variables['Container'], ''))