Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

atlassian/ftp-deploy fails with: "mirror: Access failed: /dist: No such file or directory"

Tech Support
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2025

I have tried 20 combinations of LOCAL paths and nothing is working, keeps claiming that "mirror: Access failed: /dist: No such file or directory".

 

# Deploy to Windows Server
- echo "Validating local path..."
- if [ ! -d "/tmp/${APP_NAME}_StagingBuild/publish" ]; then echo "Publish directory does not exist"; exit 1; fi
- echo "Move publish to dist directory..."
- mkdir -p /dist || { echo "Failed to create dist directory"; exit 1; }
- mv /tmp/${APP_NAME}_StagingBuild/publish/* /dist || { echo "Failed to move publish directory"; exit 1; }
- ls -la /dist || { echo "Failed to list dist directory"; exit 1; }
- echo "Deploying to Windows Server via FTPS..."
- cd /
- pipe: atlassian/ftp-deploy:0.7.1
variables:
USER: '$FTP_USER'
PASSWORD: '$FTP_PASSWORD'
SERVER: '$FTP_SERVER'
REMOTE_PATH: '/'
LOCAL_PATH: 'dist/*'
DELETE_FLAG: 'false'
SSL: 'true'
DEBUG: 'true'
EXTRA_ARGS: '--transfer-all'
- echo "FTP deployment complete."

It passes all the directory checks, then tries to upload using FTP, and fails unable to find the LOCAL_PATH directory.

I have tried all of these combinations with no different response:
- 'dist'
- 'dist/'
- '/dist'
- '/dist/'

What am I doing wrong?

Also, how do I get the pipe to fail on failed FTP? It continues and marks the pipeline as "Successful" even though it failed to upload the files.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events