Legacy Knowledge Base
公開されました Jul. 2, 2025

DEVへのビルドの自動デプロイを防止する。

Written By

Phil Chapman

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 新しいプルリクエストがdevelopブランチにマージされると、自動ビルドされ、「dev」環境にデプロイされます。 これはどうすれば防げるのでしょうか?

Environment

  • Liferay Cloud
  • Liferay LXC-SM

解決策

  • この記事 on Continuous Integrationによると、この動作はデフォルトで期待されるものであることがわかります。 つまり、「develop」gitブランチにプッシュされたものはすべて、プロジェクトの「dev」環境にデプロイされることになります。

    以下、関連する設定です:
    "LCP_CI_DEPLOY_BRANCH": "develop"
    "LCP_CI_DEPLOY_TARGET": "dev"

    参考:上記リンク先の記事について、この機能とその使い方をより明確にするための改良を継続中です。 これは LRDOCS-8350 で確認することができます。

    回避策
    "dev "へのビルドの自動デプロイを防ぐために、CIサービスLCP.jsonに、 BRANCH 変数を 存在しない ブランチに向ける設定を追加する必要があります。

    例)
    "LCP_CI_DEPLOY_BRANCH": "xxxxxx"
    (注) "LCP_CI_DEPLOY_TARGET": "dev" は必須ではありません)

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base