All Products
Search
Document Center

CloudOps Orchestration Service:Create an Apsara DevOps pipeline to deploy applications

Last Updated:Apr 04, 2023

Description

Apsara DevOps is a new DevOps platform that is developed by Alibaba Cloud in the cloud-native era. Apsara DevOps uses cloud-native new technologies and new R&D models to help start-ups and digital transformation enterprises to achieve R&D agility and organizational agility. Apsara DevOps allows enterprises to achieve a 10-fold efficiency increase.

Apsara DevOps Flow (hereinafter referred to as Flow) is an enterprise-level automated R&D and delivery pipeline platform that is provided in the service matrix of Apsara DevOps. Flow provides flexible and easy-to-use features of continuous integration, continuous verification, and continuous deployment to help enterprises deliver business with high quality and high efficiency. Pipelines are the carrier of continuous delivery. A pipeline can be automatically created, integrated, verified, and deployed to enable continuous delivery for your business from development to release. You can use pipelines to continuously provide immediate feedback to your business team. This makes the delivery process efficient and smooth. For more information, see What is Apsara DevOps Flow?

This topic describes how to integrate with Flow to complete the process from code compilation to application deployment with several simple steps.

Procedure

To integrate with Flow, perform the following operations:

  1. Associate an Apsara DevOps organization.

  2. Authorize Apsara DevOps to publish Elastic Compute Service (ECS) applications.

  3. Create or associate a pipeline

Log on to the ECS console. In the left-side navigation pane, click Applications. On the Applications page, click the name of an application to go to the details page of the application. Click the Publications tab and associate an Apsara DevOps organization with your Alibaba Cloud account. If no Apsara DevOps organization is created within the Alibaba Cloud account, click Create to create an Apsara DevOps organization as prompted.

If one or more Apsara DevOps organizations are created within the Alibaba Cloud account, select an Apsara DevOps organization to be associated. To create an Apsara DevOps organization, you must specify a name for it.

After the Apsara DevOps organization is created, you can access the Apsara DevOps organization to use all DevOps tools that are provided by Apsara DevOps.

Go back to the Publications tab and associate the created Apsara DevOps organization. If the Apsara DevOps organization is not displayed in the drop-down list, refresh the page.

Click Next: Authorize Apsara Devops to Public ECS Applications.

After the Apsara DevOps organization is associated, authorize Apsara DevOps to publish ECS applications.

After the authorization is complete, click Next: Create or Associate Pipeline.

You can directly associate a pipeline that exists in the Apsara DevOps organization. If no pipeline exists in the Apsara DevOps organization, create a pipeline.

Select a pipeline template to create a pipeline and click Create. In this example, the template that is named Build and Deploy Java File to ECS Application is used.

On the page for editing an Apsara DevOps pipeline, add a code source. In this example, the sample code source that is provided by Apsara DevOps is used.

Click the Build and Upload Java File node. In the panel that appears, edit your build script and specify the directory for storing the build output package.

Click the Deploy ECS Application node. In the panel that appears, select the ECS application to be released and the application group to which the ECS application belongs. Then, write the deployment script.

Click Save and Run to run the build publishing task. When the pipeline runs to the Deploy ECS Application node, you can click the node to view the deployment details and status. If you use the phased deployment mode, you can determine whether to continue running the next phase after the previous phase is complete.

After the pipeline is run, go back to the Publications tab and view the information about the pipeline.

Manage Apsara DevOps organization members

A RAM user that is not added to the associated Apsara DevOps organization cannot access the Publications tab. If the RAM user attempts to access the Publications tab, the message shown in the following figure appears.

To resolve the issue, go to the management console of the Apsara DevOps organization as an administrator and add the RAM user to the Apsara DevOps organization.

You can manually add RAM users or configure the system to automatically synchronize RAM users to the Apsara DevOps organization.

For more information about how to manage RAM users in an Apsara DevOps organization, see Apsara DevOps documentation.