Does folder
/folders
inside cache
support env vars?
#1264
-
Hello, I was wondering if I can use an environment variable to pass the value of env:
TOOLXYZ_CACHE: ${HOME}/.cache/toolxyz
prepare_task:
# ...
test_files_cache:
folder: ${TOOLXYZ_CACHE}
populate_script: ./my_populate_script
fingerprint_script: echo $CIRRUS_BUILD_ID
reupload_on_changes: true
# ... Does anyone know if something like the above is supported? Or is there an alternative for that which keeps a single source of truth for the value of the environment variable. Also would the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you define |
Beta Was this translation helpful? Give feedback.
folder
/folders
values are evaluated at parsing time and environment variables passed viaenv
are respected. Evaluation is also OS independent.If you define
TOOLXYZ_CACHE
dynamically while task execution it won't work at the moment.