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

Jenkins build fails with "LCP.json with id "undefined" is not valid against schema" エラー。

written-by

István Gergely-Tárnoki

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

問題

  • 新しいビルドがJenkinsで以下のエラーで失敗している:
Failed to deploy the services in /var/jenkins_home/workspace/<workspace_name>/build on liferay.cloud.
Reason: Unexpected message when uploading services: 
LCP.json with id "undefined" is not valid against the schema

Environment

  • LXC-SM

解決策

  • LCP.jsonファイルをチェックする必要があります。
  • ほとんどの場合、このプロパティは環境のスコープ外であり、 "env "に配置されるべきです:{のように セクションに置く必要があります。
  • 送信者
"environments": {
"infra": {
"deploy": true,
"PLUGINS_FORCE_UPGRADE": "true"
}
  • 終了
"environments": { 
"infra": {
"deploy": true,
"env": {
"PLUGINS_FORCE_UPGRADE": "true"
}
}
}
did-this-article-resolve-your-issue

legacy-knowledge-base