Create
cancel
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:

#bitbucket-pipelines.yml
image: node:latest

pipelines:
  default:
    - step:
        name: Build VUE Project
        caches:
            - node
        script:
            - yarn install
            - yarn run build
        artifacts:
          - dist/**
    - step:
        name: Deploy to CPANEL
        deployment: production
        script:
          - pipe: (....something)
            variables:
              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
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,650 views 63 19
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