I need to use env variable as path in artifacts, so path can be more configurable.
my pipelines is like this:
- step:
name: Install and build
caches:
- yarn #cache is defined below in the definitions section
script:
- cd $FRONTEND_PATH
- yarn install
- yarn build
artifacts:
- $FRONTEND_PATH/build/**
but this doesn't work.
I wasn't able to solve this with a var, but knowing that your path is probably unique helps, for example
- $FRONTEND_PATH/build/**
Can become:
- **/build/**
If you can be even more specific with your path you could rule out creating unnecessary artifacts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.