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.
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, thank You for clarification.
I ended up doing exactly what you suggest.
What about the speed of transfer -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrew,
I asked a couple of questions in that community question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.