...

Text file src/github.com/Azure/azure-sdk-for-go/eng/common/pipelines/templates/steps/cache-ps-modules.yml

Documentation: github.com/Azure/azure-sdk-for-go/eng/common/pipelines/templates/steps

     1steps:
     2- pwsh: |
     3    . ./eng/common/scripts/Helpers/PSModule-Helpers.ps1
     4    Write-Host "##vso[task.setvariable variable=CachedPSModulePath]$global:CurrentUserModulePath"
     5  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'], ''))
     8- task: Cache@2
     9  inputs:
    10    key: 'PSModulePath | $(CacheSalt) | $(Agent.OS) | $(Build.SourcesDirectory)/eng/common/scripts/Import-AzModules.ps1'
    11    path: $(CachedPSModulePath)
    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'], ''))

View as plain text