The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

artifacts between steps, Not being found

Robert Estes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2018

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Steven Vaccarella
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2018

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*
TAGS
AUG Leaders

Atlassian Community Events