Announcements

PaaS CI Service Update

19/12/24 23:22


Summary

Liferay Cloud has released a new version of the cloud CI service! This version includes several fixes and improvements that will be beneficial to PaaS customers. Because of some of the significant changes, this is a major version release as opposed to a minor release. This article covers the major changes and what to do to leverage the new CI service.

Details

CI Service version 6.0 released on January 14. It includes various improvements including new settings and new Jenkins versions. The changes are detailed below.

Benefits

  • Bug fixes and improvements
    • Expect to see improved stability and other fixes and improvements with this new version
  • New Jenkins LTS version
    • The CI service now runs on Jenkins 2.479.2 LTS
  • New JDK settings
    • JDK compile version can now be set in Console or LCP.json via an environment variable
  • New Executor setting
    • The number of executors can now be set via environment variable

Breaking Changes

  • JDK Settings
    • Now that the JDK compile version is being set via environment variable, users need to migrate their current setting from the gradle.properties file.
    • The default value is JDK 8, so if any other JDK is in use, it is imperative that users add the LCP_CI_GRADLE_JDK environment variable and point it to the correct version. For more information on the available JDKs, please see Continuous Integration.
    • Regardless of the current version, it is best practice to remove the gradle.properties setting and add the environment variable instead.
  • Jenkins Root User
    • In order to improve security, the root user will no longer be accessible
    • Any modifications or scripts currently in place that leverage the 'root' user will fail
    • These modifications should be set to use the 'jenkins' user in order to continue to function

Instructions

You can update to CI service version 6.0 by performing the following steps.

  1. Update CI LCP.json to 6.0 in your repository
  2. Deploy the new build to the infra environment
  3. Update LCP_CI_GRADLE_JDK setting(remove the setting from gradle.properties)
  4. Set LCP_CI_NUM_EXECUTORS setting to 1
  5. Redeploy the CI

Additional Information

If you encounter any issues, please submit a ticket and Liferay Support will be happy to assist.