When doing a pipeline with the purpose to connect to an ftp server and upload the files I tried to use git ftp for that purpose. (I know there are other ways, but this should work right??)
UPDATE: When I enter not a dns name but my direct IP address it also doesn't work.
There is no filter on the FTP server for incoming connections as far as I know.
Is there a internet filter on Bitbucket in combination with containers/images?
pipeline Log:
<span>Thu Feb 11 14:11:35 UTC 2021: git-ftp version 1.5.1 running on Linux 02246b22-29d7-491c-944e-bd5c0d1469f9-4q8kc 5.6.0 #1 SMP <br></span><span>Thu Nov 12 07:09:22 UTC 2020 x86_64 GNU/Linux<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Host is '<a href="http://ftp.wachtweken.online/" target="_blank" rel="noopener nofollow noreferrer">ftp.wachtweken.online</a>'.</span>
<span>Thu Feb 11 14:11:35 UTC 2021: User is ''.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Password is set.</span>
<span>Thu Feb 11 14:11:35 UTC 2021: CACert is ''.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Insecure is '0'.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Proxy is ''.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Protocol not set, using default protocol ftp://.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Path is ''.</span>
<span>Thu Feb 11 14:11:35 UTC 2021: Syncroot is './'.</span>
<span>Thu Feb 11 14:11:35 UTC 2021: The remote sha1 is saved in file '.git-ftp.log'.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Check if curl is functional.<br></span><span>Thu Feb 11 14:11:35 UTC 2021: Check if <a href="ftp://ftp.wachtweken.online/" target="_blank" rel="noopener nofollow noreferrer">ftp://ftp.wachtweken.online</a> is accessible.</span>
<span>* Expire in 0 ms for 6 (transfer 0x55a75f68f870)<br></span><span>* Couldn't find host <a href="http://ftp.wachtweken.online/" target="_blank" rel="noopener nofollow noreferrer">ftp.wachtweken.online</a> in the .netrc file; using defaults<br></span><span>* Expire in 1 ms for 1 (transfer 0x55a75f68f870)<br></span><span>* Expire in 0 ms for 1 (transfer 0x55a75f68f870)<br></span><span>* Expire in 1 ms for 1 (transfer 0x55a75f68f870)</span><span>* Expire in 0 ms for 1 (transfer 0x55a75f68f870)<br>...<br>...<br>* Trying 2a0b:7280:100:0:1c00:f1ff:fe00:2193...<br>* TCP_NODELAY set<br>* Expire in 84219 ms for 3 (transfer 0x55a75f68f870)<br>* Immediate connect fail for 2a0b:7280:100:0:1c00:f1ff:fe00:2193: Network is unreachable<br>* Failed to connect to ftp.wachtweken.online port 21: Connection timed out<br>* Closing connection 0<br>curl: (7) Failed to connect to ftp.wachtweken.online port 21: Connection timed out<br>Thu Feb 11 14:13:46 UTC 2021: fatal: Can't access remote 'ftp://ftp.wachtweken.online', exiting...</span><span>+ git ftp init -vv -u $FTP_USERNAME -p $FTP_PASSWORD $FTP_SERVER</span>
I have the following (slimmed down version) yaml:
#First version to create a pipeline to deploy xxx to various servers
image: php:7.4
pipelines:
branches:
master:
- step:
name: Fill
script:
- echo "Please remove this when other steps below are activated"
- step:
name: Deploy to test
deployment: test
image: samueldebruyn/debian-git
trigger: manual
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp init -vv -u $FTP_USERNAME -p $FTP_PASSWORD $FTP_SERVER
I can connect to it using my client (windows) on my home network and from my company network.