Jenkins build fails with "LCP.json with id "undefined" is not valid against the schema" error

Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Our new build is failing in Jenkins with the following error:
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

  • Liferay PaaS

Resolution

  • You should check your LCP.json files because a property might need to be relocated
  • Most of the time the property is out of the environment's scope and should be placed in the "env": {} section, like
  • From
"environments": {
"infra": {
"deploy": true,
"PLUGINS_FORCE_UPGRADE": "true"
}
  • To
"environments": { 
"infra": {
"deploy": true,
"env": {
"PLUGINS_FORCE_UPGRADE": "true"
}
}
}
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0