Add pre-step in build system to download the test resources from a secret variable. The pipeline will cache this directory.
Example
To download the test resources use the argument --resource-uri:
dotnet cake --resource-uri http://...
To invalidate the cache after changing one of the resources, update the variable RESOURCES_VERSION in the pipeline definition. It's recommendable to create new secret variables to avoid breaking the CI of previous releases.
Description
Add pre-step in build system to download the test resources from a secret variable. The pipeline will cache this directory.
Example
To download the test resources use the argument
--resource-uri
:To invalidate the cache after changing one of the resources, update the variable
RESOURCES_VERSION
in the pipeline definition. It's recommendable to create new secret variables to avoid breaking the CI of previous releases.