When I use my bitbucket pipeline, it's always stucked at :
+ lftp -u '$FTP_LOGIN,$FTP_PASSWORD' -e 'set ftp:ssl-allow no; mirror --delete-first -vvv --exclude=.gitignore --exclude=README.md --exclude=bitbucket-pipelines.yml -R /opt/atlassian/pipelines/agent/build /htdocs/myfolder;quit' xxx.xxx.xxx.xxx
INFO: Starting FTP deployment to xxx.xxx.xxx.xxx:/htdocs/myfolder...
It can stay 10 minutes here, no response, no message, even with -vvv ...
Is there anyway to know what's going on ?
My ftp has a firewall, I thought it could be the culprit, but I allowed all bitbuckets IPs with no effect.
Here is my latest yaml file :
#!yaml
image: atlassian/default-image:2
options:
max-time: 6 #Configure default 10 minute timeout
pipelines:
custom:
DeployToFTP:
- step:
name: 'Deployment to PRODUCTION'
deployment: production
script:
- echo "Deployment to FTP starting now"
- pipe: atlassian/ftp-deploy:0.3.6
variables:
USER: "$FTP_LOGIN"
PASSWORD: "$FTP_PASSWORD"
SERVER: "$FTP_IP"
REMOTE_PATH: "$FTP_PATH"
DELETE_FLAG: 'true'
DEBUG: "$FTP_DEBUG"
EXTRA_ARGS: "--exclude=.gitignore --exclude=README.md --exclude=bitbucket-pipelines.yml"
- echo "Deployment to FTP finished"
artifacts:
- /opt/atlassian/pipelines/agent/build/**
Thank you for your question!
Have you check if it's possible to connect to you server from bitbucket pipelines before using the pipe?
Best regards,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about this one?
- ping SERVER_IP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.