LoginSignup
1
0

More than 5 years have passed since last update.

Google Cloud Buildのビルドステップ定義に日本語を含めるとエラーになる

Posted at

概要

まじすか。

前提条件

GCPプロジェクト、gcloud コマンドが利用できる前提です。

検証

問題がないケースです。
単純にbashecho するだけの定義です。

cloudbuild.yaml
steps:
- name: 'gcr.io/cloud-builders/docker'
  entrypoint: 'bash'
  args: ['-c', 'echo "hoge!"']
> gcloud builds submit --config=cloudbuild.yaml --no-source
()
FETCHSOURCE
BUILD
Already have image (with digest): gcr.io/cloud-builders/docker
hoge!
PUSH
DONE
()

はい。

日本語を含めてみます。

cloudbuild.yaml
steps:
- name: 'gcr.io/cloud-builders/docker'
  entrypoint: 'bash'
  args: ['-c', 'echo "ほげ!"']
> gcloud builds submit --config=cloudbuild.yaml --no-source

ERROR: gcloud crashed (error): bad character range

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

bad character range でエラーになります。
まじすか。。。

コメントに含めてもだめでした。

cloudbuild.yaml
# ほげ
steps:
- name: 'gcr.io/cloud-builders/docker'
  entrypoint: 'bash'
  args: ['-c', 'echo "hoge!"']

YAMLファイルだからか?と思ってJSONファイルにしてみましたが、それでもだめでした。

いろいろと試してみましたが、いまのところはcloudbuild.yaml内で日本語が利用できないものと諦めていたほうがよさそうです。

Issue登録してみた

せっかくなのでgcloud feedback コマンドからIssue登録してみました。

> gcloud feedback

We appreciate your feedback.

If you have a question, post it on Stack Overflow using the "gcloud" tag at
[http://stackoverflow.com/questions/tagged/gcloud].

For general feedback, use our groups page
[https://groups.google.com/forum/?fromgroups#!forum/google-cloud-dev],
send a mail to [google-cloud-dev@googlegroups.com] or visit the [#gcloud] IRC
channel on freenode.

Which recent gcloud invocation would you like to provide feedback
about? This will open a new browser tab.
 [1] [gcloud builds submit] (crash detected): 6 seconds ago
 [2] [gcloud feedback]: 26 seconds ago
 [3] [gcloud builds submit] (crash detected): 3 minutes ago
 [4] [gcloud builds submit]: 3 minutes ago
 [5] [gcloud builds submit] (crash detected): 10 minutes ago
 [6] None of these
Please enter your numeric choice (1):

実行コマンドが選択できるようになっていて、選択するとGoogle Issue TrackerのNew Ussueページが開き、トレースログなどが設定されて、スムーズにIssue登録できました^^

Issue登録後、Googleの中の人から再現できたよとコメントがありましたが、修正予定はまだないとのことでした。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0