#参考
https://esnetk6.com/2017/10/bitbucket-pipelines-ftp-deployment/
を参考に表題のことを実現したいのですが、
#問題箇所
bitbucket-pipelines.ymlを作成したところまでは出来たのですが、
おそらくftpの部分で詰まっています。
image: samueldebruyn/debian-git pipelines: default: - step: script: - echo "Pipeline Init" - apt-get update - apt-get -qq install git-ftp - echo "Initiating Push" - git ftp init --user $FTP_USER --passwd $FTP_PASSWORD $FTP_HOST - echo "Done Pushing"
環境変数はそれぞれbitbucketの方に登録してあり、
$FTP_HOSTはftp.hogehoge.jp/home/users/1/hogehoge/web/test/
のように登録してます。おそらくこのかきかた(パスの指定方法?)が間違っているのかと思います。
(FTPソフトでは問題なく接続できています。)
この部分が、さくらやお名前など書き方が諸所違うようでロリポップだけ見当たらず困っています。。
どなたかご存知の方いらっしゃいますでしょうか?
pipelineのエラー
Thu Feb 7 07:03:35 UTC 2019: Password is set. Thu Feb 7 07:03:35 UTC 2019: Protocol not set, using default protocol ftp://. Thu Feb 7 07:03:35 UTC 2019: Path is 'home/users/1/hoge-hogehoge/web/bittest/'. Thu Feb 7 07:03:35 UTC 2019: Syncroot is ''. Thu Feb 7 07:03:35 UTC 2019: The remote sha1 is saved in file '.git-ftp.log'. Thu Feb 7 07:03:35 UTC 2019: CACert is ''. Thu Feb 7 07:03:35 UTC 2019: Insecure is ''. Thu Feb 7 07:03:35 UTC 2019: Check if ftp://hoge-hogehoge:***@ftp.hogehoge.hoge is accessible. * Trying 123.7.105.000... * TCP_NODELAY set * Connected to ftp.hogehoge.hoge (123.7.105.000) port 21 (#0) < 220 FTP Server ready. > USER hoge-hogehoge < 331 Password required for hoge-hogehoge > PASS 111111 < 230 User hoge-hogehoge logged in. > PWD < 257 "/home/users/1/hoge-hogehoge" is the current directory * Entry path is '/home/users/1/hoge-hogehoge' > CWD home * ftp_perform ends with SECONDARY: 0 < 250 CWD command successful > CWD users < 250 CWD command successful > CWD 1 < 250 CWD command successful > CWD hoge-hogehoge < 250 CWD command successful > CWD web < 250 CWD command successful > CWD bittest < 250 CWD command successful > EPSV * Connect data stream passively < 229 Entering Extended Passive Mode (|||65079|) * Trying 123.7.105.000... * TCP_NODELAY set * Connecting to 123.7.105.000 (123.7.105.000) port 65079 * Connected to ftp.hogehoge.hoge (123.7.105.000) port 21 (#0) > TYPE A < 200 Type set to A > LIST < 150 Opening ASCII mode data connection for file list * Maxdownload = -1 { [427 bytes data] ######################################################################## 100.0%* Remembering we are in dir "home/users/1/hoge-hogehoge/web/bittest/" < 226 Transfer complete * Connection #0 to host ftp.hogehoge.hoge left intact Thu Feb 7 07:03:39 UTC 2019: Check if ftp://hoge-hogehoge:***@ftp.hogehoge.hoge/home/users/1/hoge-hogehoge/web/bittest/ is clean. * Trying 123.7.105.000... * TCP_NODELAY set * Connected to ftp.hogehoge.hoge (123.7.105.000) port 21 (#0) < 220 FTP Server ready. > USER hoge-hogehoge < 331 Password required for hoge-hogehoge > PASS 123456 < 230 User hoge-hogehoge logged in. > PWD < 257 "/home/users/1/hoge-hogehoge" is the current directory * Entry path is '/home/users/1/hoge-hogehoge' > CWD home * ftp_perform ends with SECONDARY: 0 < 250 CWD command successful > CWD users < 250 CWD command successful > CWD 1 < 250 CWD command successful > CWD hoge-hogehoge < 250 CWD command successful > CWD web < 250 CWD command successful > CWD bittest < 250 CWD command successful > EPSV * Connect data stream passively < 229 Entering Extended Passive Mode (|||65088|) * Trying 123.7.105.000... * TCP_NODELAY set * Connecting to 123.7.105.000 (123.7.105.000) port 65088 * Connected to ftp.hogehoge.hoge (123.7.105.000) port 21 (#0) > TYPE I < 200 Type set to I > SIZE .git-ftp.log < 213 41 > RETR .git-ftp.log < 150 Opening BINARY mode data connection for .git-ftp.log (41 bytes) * Maxdownload = -1 * Getting file with size: 41 { [41 bytes data] ######################################################################## 100.0%* Remembering we are in dir "home/users/1/hoge-hogehoge/web/bittest/" < 226 Transfer complete * Connection #0 to host ftp.hogehoge.hoge left intact Thu Feb 7 07:03:42 UTC 2019: fatal: Commit found, use 'git ftp push' to sync. Exiting...
あなたの回答
tips
プレビュー