Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Extract files from artifacts folder dist/**

Hello guys, I have a question and I hope someone can help me!

I have this pipeline:

image: node:latest

    - step:
        name: Build VUE Project
            - node
            - yarn install
            - yarn run build
          - dist/**
    - step:
        name: Deploy to CPANEL
        deployment: production
          - pipe: (....something)
              USER: $ftp_user
              PASSWORD: $ftp_password
              SERVER: $ftp_host
              REMOTE_PATH: $ftp_remote_path

It works and when pipeline is completed in my server prod i found my folder dist with my app.

But I would only files inside the folder dist.

I imagine to have in my root folder server production all files inside dist and not the folder dist(with all files inside).

Someone have some suggestions? Thank you 

1 answer

1 accepted

0 votes
Answer accepted

For everyone will have same problem the solution is to add this line inside step:

LOCAL_PATH: 'dist' 

So, only the content of the directory dist will be deployed! Have a nice coding day :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

106 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you