You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
870 B
23 lines
870 B
# Steps for restoring project cache |
|
|
|
steps: |
|
- task: DownloadBuildArtifacts@0 |
|
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master')) |
|
displayName: 'Cache: Restore install' |
|
inputs: |
|
buildType: 'specific' |
|
project: '$(System.TeamProject)' |
|
pipeline: '$(Build.DefinitionName)' |
|
branchName: 'refs/heads/master' |
|
buildVersionToDownload: 'latestFromBranch' |
|
downloadType: 'single' |
|
artifactName: 'cache-$(Agent.OS)-install' |
|
downloadPath: '$(System.ArtifactsDirectory)' |
|
continueOnError: true |
|
|
|
- task: CopyFiles@2 |
|
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master')) |
|
inputs: |
|
sourceFolder: '$(System.ArtifactsDirectory)\cache-$(Agent.OS)-install' |
|
targetFolder: '$(ESY__CACHE_INSTALL_PATH)' |
|
continueOnError: true
|
|
|