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: 

SCP pipe: multiple artifacts

Admin Admin
January 23, 2022

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Norbert Csupka
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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

andrew zyman
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 26, 2022

Norbert, thank You for clarification.

I ended up doing exactly what you suggest.

What about the speed of transfer -

Norbert Csupka
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 28, 2022

Hi Andrew,

I asked a couple of questions in that community question.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events