You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to copy @jsplumbtoolkit @jsplumb libraries into node modules folder of ci pipeline on 2nd step and pass that node_modules to third step for angular build. But not able to.
please suggest changes on step two.
Angular pipeline :-
- npm install
- node_modules/** # Save modules for next steps
name: copy jsplumb to node modules artifact
- cp -r @jsplumbtoolkit @jsplumb node_modules/
- npm run build:prod
- dist/** # Save build for next steps
Since node_modules/** is defined as an artifact in the first step only, only the contents of node_modules in the first step will be saved.
You have two options here:
The second option might make more sense:
For every step in your bitbucket-pipelines.yml file, a Docker container starts based on the image you have specified, the Bitbucket repo is cloned in that container, then the commands of that step's script are executed, and eventually, the container gets destroyed. You may not want to use a separate step, and thus spin up a new container, only to execute a copy command.
If you have any questions, please feel free to let us know!