Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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*

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Bitbucket Events