legacy-knowledge-base
公開されました Jun. 30, 2025

GitLab が Jenkins に接続されているため、GitLab で Webhook が作成されない

written-by

Justin Mann

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

問題

  • GitLab リポジトリを Jenkins に接続しようとすると Webhook が作成されない
  • ログに表示されたエラーに基づいて、GitLab と Jenkins の間の接続が機能していません
[DXP Cloud] LCP_CI_SCM_REPOSITORY_NAME env variable should have been set by DXP Cloud infrastructure, but was not found.

環境

  • Liferay エクスペリエンス クラウド
  • Liferay DXP 7.4
  • GitLab リポジトリ

解決策

  • リポジトリ所有者とリポジトリ名の環境変数は、プロジェクトと正確に一致する必要があります
  • リポジトリ所有者がどうあるべきかについて、混乱が生じる可能性があります。 プロジェクトを所有するユーザーの名前ではなく、リポジトリ所有者はプロジェクトのルート グループ名です。 多くの場合、これはプロジェクトを所有するユーザーと同じである可能性がありますが、常にそうであるとは限りません。
  • その後、リポジトリ名は、リポジトリ所有者に続く完全なサブグループ パスです。 Jenkins に接続されているプロジェクト リポジトリがいくつかのレベルでネストされている場合、リポジトリ名には完全なサブグループ パスが必要です。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base