Bitbucket pipeline error - fatal: Could not upload files., exiting

Maisam Bakhshi November 1, 2020

The deployment via FTP keeps breaking when uploading dist folder.

Here' my bitbucket-pipelines.yml

 

- step:
    name: 'Deployment to Production'
    size: 2x
    deployment: production
    trigger: 'manual'
    script:
      - apt-get update
      - apt-get -qq install git-ftp
      - git ftp init --auto-init --insecure --user $FTP_USER--passwd $FTP_PASS ftpes://ftp.domain.dev/public_html/wp-content/themes/test --all

 

and in my .git-ftp-include I have excluded dist folder

 

!dist/

 

But whenever the it's uploading the dist folder, I keep getting this error

 

[108 of 109] Buffered for upload 'yarn.lock'.
[109 of 109] Buffered for upload 'dist/'.
Uploading ...
fatal: Could not upload files., exiting...

 

Is it due to the size? I have doubled the size in the .YML file. I'm not sure what am I missing.

 

1 answer

0 votes
Thedigital sarathi January 29, 2021

use .git-ftp-ignore to ignore some file or folder....

this will ignore the file and folder when uploading to the server via ftp

Suggest an answer

Log in or Sign up to answer