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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events