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
Next: Root
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 :-
image: node:16
pipelines:
branches:
ci-cd-test-branch:
- step:
name: Installation
caches:
- node
script:
- npm install
artifacts:
- node_modules/** # Save modules for next steps
- step:
name: copy jsplumb to node modules artifact
script:
- cp -r @jsplumbtoolkit @jsplumb node_modules/
- step:
name: Build
script:
- npm run build:prod
artifacts:
- dist/** # Save build for next steps
Hi @bb.admin!
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!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.