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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipelines: How to cache dependencies with custom pipes Edited

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

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

@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.

@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
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

451 views 4 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you