legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay Cloud Dev 環境での Git ブランチ構成

written-by

Sivakumar Perumal

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

learn-legacy-article-disclaimer-text

問題

  • 「develop」ブランチがデフォルトブランチとして設定されている場所はありますか?

Environment

  • ライフレイ クラウド

解決策

  • 環境変数 LCP_CI_DEPLOY_BRANCH が ciサービスで読み取られ、構成されたブランチを担当します。 LCP_CI_DEPLOY_BRANCH 値を変更できます (デフォルトは 開発です)
  • なぜデフォルトが開発なのですか?
    ci サービスの Jenkins の entrypoint スクリプトは、デフォルト ブランチを担当します。 値が指定されていない場合、デフォルトで「develop」になります。
    if (env.BRANCH_NAME == env.LCP_CI_DEPLOY_BRANCH) {
    deployToCloud(deployBranch: env.LCP_CI_DEPLOY_BRANCH, deployTarget: env.LCP_CI_DEPLOY_TARGET)
    }

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base