Hi, I am trying to use artifacts to keep two files generated by gulp and stored in the generated folder. however when i run the ls in the following step it errors out. What am i doing wrong?
- step:
image: node:4.6.0
caches:
- node
script:
- cd web-application
- npm install
- npm install -g gulp
- gulp
- ls public/assets/css/generated
artifacts:
- public/assets/css/generated/style.css
- public/assets/css/generated/style.css.map
- step:
image: google/cloud-sdk:latest
script:
- cd web-application
- ls public/assets/css/generated
Hi Robert,
The artifact definitions are relative to the build directory. Based on the first command in your script ("cd web-application") I'm guessing your artifact definitions should be:
artifacts:
- web-application/public/assets/css/generated/style.css
- web-application/public/assets/css/generated/style.css.map
Note that artifacts can also be defined using glob patterns to capture multiple files at once, eg:
artifacts:
- web-application/public/assets/css/generated/style.css*
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.