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

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

0 votes
Norbert C
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 January 26, 2022

Norbert, thank You for clarification.

I ended up doing exactly what you suggest.

What about the speed of transfer -

Norbert C
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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events