Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,842
Community Members
 
Community Events
168
Community Groups

FTPdeploy not answering

Edited

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/**

1 answer

0 votes

Hi @Nicolas BROUET

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

No, I havent checked that...
How do you do that ?

How about this one?

- ping SERVER_IP

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events