Set parameters in scenarios where edas-jenkins-plugin in Jenkins is used to deploy an application

Updated at:

If you want to use edas-jenkins-plugin in Jenkins to deploy an application to Enterprise Distributed Application Service (EDAS), you can create or deploy the application in an Elastic Compute Service (ECS) cluster or a Container Service for Kubernetes (ACK) cluster. This topic describes how to set relevant parameters in four scenarios.

Deploy an application to an ECS cluster

When you update and deploy an application in an ECS cluster, set the parameters as prompted, as shown in the following figure. The advanced parameters in the following figure are optional. EDAS ECS Application
ParameterDescription
EDAS CredentialsThe AccessKey ID.
EDAS NamespaceThe microservices namespace in which the application to be deployed resides. Specify the value in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Application IDThe ID of the application to be deployed.
GroupThe group of the application to be deployed. A value of all indicates that the application belongs to all groups.
Target ObjectThe URL of the package that is used to deploy the application. The package type that you use to redeploy the application must be the same as that you use to deploy the application for the first time.
Version Label FormatThe version number.
Version Description FormatThe version description that is in the required format.
BatchThe number of phases for the deployment.
Batch Wait TimeThe interval between two consecutive phases.
Release TypeThe type of the phased release. The next phase can be manually or automatically started.

Create and deploy an application in an ECS cluster

When you create and deploy an application in an ECS cluster, set the parameters as prompted, as shown in the following figure. The advanced parameters in the following figure are optional. Create EDAS ECS Application
ParameterDescription
EDAS CredentialsThe AccessKey ID.
EDAS NamespaceThe microservices namespace in which the application to be deployed resides. Specify the value in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Application NameThe name of the application to be deployed.
Package TypeThe type of the deployment package. Valid values: WAR and JAR.
Cluster IDThe ID of the cluster in which the application to be deployed resides.
Target ObjectThe URL of the package that is used to deploy the application. The package type that you use to redeploy the application must be the same as that you use to deploy the application for the first time.
Ecu InfoThe elastic compute unit (ECU) ID of the ECS instance that you want to use. For more information, see ListScaleOutEcu.
Version Label FormatThe version number.
Version Description FormatThe version description that is in the required format.
Build Pack IDThe build package number of EDAS Container.
Health Check UrlThe health check URL.

Deploy an application to an ACK cluster

Note

To update and deploy a Spring Boot application in an ACK cluster by using edas-jenkins-plugin in Jenkins, you can perform the following steps: Go to the Applications page in the EDAS console. Click the name of the application that you want to manage. On the Application Overview page, choose Deploy > Deploy. On the page that appears, click Start Deployment in the Phased Release section. On the Phased Release page, click Copy Deployment Parameters to copy deployment parameters to a file named UpdateStrategy Json.

When you update and deploy an application in an ACK cluster, set the parameters as prompted, as shown in the following figure. In the following figure, the Application Environment, Startup Command, Resource Quota, and Application Management parameters are optional.

EDAS K8s Application
ParameterDescription
EDAS CredentialsThe AccessKey ID.
EDAS NamespaceThe microservices namespace in which the application to be deployed resides. Specify the value in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Application IDThe ID of the application to be deployed.
Target ObjectThe URL of the package or image that is used to deploy the application. The method of redeploying the application must be the same as that of deploying the application for the first time.
Whether target imageUrlIf you set the Target Object parameter to the URL of the image that is used to deploy your application, select the check box for this parameter.
Application EnvironmentFor more information, see DeployK8sApplication.
Startup Command
Resource Quota
Application Management

Create and deploy an application in an ACK cluster

Create EDAS K8s Application
ParameterDescription
EDAS CredentialsThe AccessKey ID.
EDAS NamespaceThe microservices namespace in which the application to be deployed resides. Specify the value in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Cluster IDThe ID of the cluster in which the application to be deployed resides.
K8s NamespaceThe Kubernetes namespace of the cluster. Internal system objects are allocated to different Kubernetes namespaces to form logically isolated projects, groups, or user groups. This way, these projects, groups, or user groups can be separately managed but still share the resources of the entire cluster. Select default.
Application NameThe name of the application to be deployed.
Application DescriptionThe description of the application.
Target ObjectThe URL of the FatJar package, WAR package, or image that is used to deploy the application.
Package TypeThe deployment method. Valid values: FatJar, WAR, and Image.
EDAS Container VersionThe version of EDAS Container on which the deployment package of the application depends. This parameter is applicable to High-Speed Service Framework (HSF) applications that you deploy by using WAR packages. This parameter is unavailable if you deploy applications by using images.
Web ContainerThe version of the Tomcat container on which the deployment package of the application depends. This parameter is applicable to Spring Cloud and Dubbo applications that you deploy by using WAR packages. This parameter is unavailable if you deploy applications by using images.
JDK VersionThe Java Development Kit (JDK) version, such as Open JDK 8.
Version Label FormatThe version number.
Environments JsonThe environment variables that are used to deploy the application. Specify the value in the format of a JSON array.
Startup CommandFor more information, see DeployK8sApplication.
Resource Quota
Application Management