Missed Team ’24? Catch up on announcements here.

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

Pipelines: How to cache dependencies with custom pipes

pablodenadai
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!
June 26, 2019

Given the pipeline configuration below:

image: node:12.3.1

pipelines:
default:
- step:
caches:
- npm
- bower
script:
- pipe: docker://username/pipe:0.0.1
artifacts:
- dist/**

definitions:
caches:
npm: $HOME/.npm
bower: $HOME/.cache/bower/

 

  1. How do I cache the custom pipe "docker://username/pipe:0.0.1"?
  2. Why isn't .npm and bower being cached properly?
    Cache "npm": Downloading
    Cache "npm": Not found
    Cache "bower": Downloading
    Cache "bower": Not found

     

PS. I'm not looking at caching the node_modules folder. Instead I need to cache npm's cache.

1 answer

0 votes
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2019

Hi @pablodenadai . Pipelines don't cache files created inside a pipe. Is this something that you want to achieve?

ezhou
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!
January 23, 2020

@Alexander Zhukov I am facing a similar problem. This is a deal breaker when building with dependencies on large repositories. For reference, I'm experimenting with the JFrog Artifactory custom pipe and builds for simple example maven projects are taking 5 minutes.

cec_lugano
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!
April 21, 2020

@Alexander Zhukov is this still the case now?

This is a massive problem for our organization.

It defeats the advantage of having pipes maintained by Atlassian or vendors.

And even custom pipes for code sharing in an organization may be impaired by this.

Thank you

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events