Unity Cloud Build は Mercurial リポジトリに格納したプロジェクトをサポートします。リポジトリは Bitbucket、または、プライベートサーバーでホストできます。
リポジトリ に接続するには、Unity Cloud Build に適当なアクセス証明書を提供することが必要です。これは、Bitbucket やその他でホストされる Mercurial リポジトリでも同様です。
Services ウィンドウの Cloud Build の横にあるボタンが OFF の場合は、クリックして ON にします。
CLOUD BUILD ウィンドウで Cloud Build を切り替えてプロジェクトの Cloud Build を有効にします。
Services の SOURCE CONTROL ウィンドウで以下を行います。
SOURCE CONTROL HOST TYPE ドロップダウンで Mercurial を選択します。
SOURCE CONTROL HOSTING URL フィールドに Mercurial リポジトリの URL を入力します。URL 形式の詳細は、後述の URL 構文 を参照してください。
Next ボタンをクリックします。
リポジトリに接続するには、Mercurial サーバーへの URL を指定する必要があります。以下の構文を使用して URL を指定できます。
HTTPS
SSH
以下は bitbucket の URL の例です。
https://github.com/youraccount/yourrepo
git@bitbucket.org:youraccount/yourrepo.git
自分が最も慣れた形式で入力すると、Unity Cloud Build は自動的にその URL を適切な形式に書き直します。
Mercurial サーバーで Unity Cloud Build 用のユーザー名を作成し、安全なパスワードを割り当てます。使用する Mercurial ホストで可能な場合は、読み取り専用のユーザーアカウントにします。
Grant Access ウィンドウで、Username と Password を入力します。
Unity エディターでアプリケーションのランタイムのプラットフォームを設定するには、 Services ウィンドウに移動し以下を変更します。
TARGET LABEL ドロップダウンからビルドプラットフォームを選択します。
BRANCH ドロップダウンから、ビルドするプロジェクトが含まれるブランチを選択します。大抵の Git リポジトリのデフォルトブランチは master です。複数のビルドターゲット用にビルドする場合は、それぞれのビルドターゲットごとに異なるブランチを設定することができます。
PROJECT SUBFOLDER フィールドには、Unity プロジェクト (Assets フォルダーと ProjectSettings フォルダー) を含むフォルダーを入力します。フォルダーへのパスは通常 NewGameProject/Src/UnityProject/ に似ています。
ノート: Unity プロジェクトのファイルがリポジトリの最上層にない場合は、PROJECT SUBFOLDER フィールドを入力する必要があります。
プロジェクトを変更したときに Cloud Build によって自動的にビルドされることを防ぐには、AUTO-BUILD チェックボックスのチェックを外します。詳しくは、Automated Build Generation を参照してください。
2018–04–10 公開ページ
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.