Managing Cloud Builds and Deployments

Liferay PaaS provides a robust CI/CD pipeline and deployment process, enabling you to efficiently build, test, and deploy your Liferay applications. Here, you’ll explore the key aspects of managing builds and deployments within a Liferay PaaS environment.

Managing Builds

Your Liferay Workspace, hosted on GitHub, serves as the foundation for your Liferay PaaS project. It contains all the code, configurations, and dependencies required for your Liferay application. When you commit changes or open a pull request to this repository, webhooks trigger Jenkins to initiate builds. This process involves compiling your code, running any configured tests, and packaging the resulting application into deployable artifacts. To monitor the progress and identify any potential issues, you can track the build status and access detailed logs through your project's Jenkins page (https://ci-<project-name>-infra.lfr.cloud) or via GitHub.

Build Status on GitHub
 

Performing Deployments

Once a build completes successfully, you can deploy it to your desired environment using the Liferay Cloud Console. To do this, navigate to the Builds page, where you can view all project builds and deploy them to different environments. Click the Actions button for the build you want to deploy and select Deploy Build To.

Deploy Build

A dialog appears with a drop-down menu to select the target environment. After selecting the environment, use the checkboxes to confirm your deployment choices and click Deploy Build. You can monitor the deployment's progress on the Deployments page, as well as the target environment's Logs and Activities pages.

Monitor Deployment Progress

To further streamline your development workflow, you can configure specific branches in your repository to trigger automatic deployments to designated environments. This ensures your latest changes are deployed without manual intervention. Besides the automated CI/CD pipeline, you can use the Liferay Cloud CLI tool to deploy changes directly from your local development environment without triggering a full Jenkins build. This is particularly useful for quick iterations and testing specific changes.

Conclusion

Understanding the build and deployment processes within Liferay PaaS empowers you to efficiently manage your applications and ensure a smooth transition from development to production. Next, you’ll see this process in action.

Loading Knowledge

Capabilities

Product

Education

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy