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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,334
Community Members
 
Community Events
176
Community Groups

SCP pipe: multiple artifacts

hello,

 how can I deploy several files in one pipe invocation?

calling pipe just to copy one file seems not efficient at all.

example:

bitbucket_pipeline.yml

-- from the build step

artifacts:
- node_modules/**
- .nuxt/**
- package.json
- .env

 

i'd like to copy package.json and .env files to the same remote location in one pipe call...

And actually, all these artifacts should go to the same location on the remote host...

 

thank you.

1 answer

0 votes
Norbert C Atlassian Team Jan 26, 2022

Hi @Admin Admin 

Thank you for contacting Atlassian Community. My name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet you!

I'd like to inform you that unfortunately it's not possible to copy multiple files and/or directories at the same time with SCP.

What I would like to recommend you is to compress these files into one file and then copy the compressed file to the remote server.

For example:

tar -czvf artifacts.tar.gz node_modules .nuxt package.json .env

Once the artifacts.tar.gz file is created, please copy this file with SCP.

Please let us know how it goes.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Norbert C Atlassian Team Jan 28, 2022

Hi Andrew,

I asked a couple of questions in that community question.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events