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.
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.