質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
BitBucket

BitBucketは無料のリポジトリ管理ホスティングサービスです。 MercurialとGitのVCSに対応しています。プライベートリポジトリを、制限なく作成することが可能です。

Q&A

0回答

1534閲覧

ロリポップサーバー bitbucket pipelineにてデプロイ

cheche0830

総合スコア187

BitBucket

BitBucketは無料のリポジトリ管理ホスティングサービスです。 MercurialとGitのVCSに対応しています。プライベートリポジトリを、制限なく作成することが可能です。

0グッド

1クリップ

投稿2019/02/07 06:47

編集2022/01/12 10:55

#参考
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...

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

CHERRY

2019/02/07 07:02

> git ftp init --user $FTP_USER --passwd $FTP_PASSWORD $FTP_HOST を git ftp init -vv --user $FTP_USER --passwd $FTP_PASSWORD $FTP_HOST のように ` -vv ` をつけて実行すると詳細なメッセージが表されると思いますが、どのようなエラーが出ていますか?
cheche0830

2019/02/07 07:10

ありがとうございます!詳細エラーを追記させていただきました!
cheche0830

2019/02/07 07:11

細かい部分は変更しています。。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問