Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Cloud Application Engine/ Best Practices/ Connecting to the CodeArts Pipeline to Automatically Upgrade CAE Components/ Upgrading a CAE Component After Uploading a Software Package Built Using the Pipeline to the OBS Bucket

Upgrading a CAE Component After Uploading a Software Package Built Using the Pipeline to the OBS Bucket

Updated on 2025-01-17 GMT+08:00

Creating a Build Task

Create a build task for a code repository.

  1. Go to the CodeArts console and click Access Service in the upper right corner.
  2. Choose Services > Build.

    Figure 1 Selecting a service

  3. On the Build page, click Create Task. In the Basic Information area, set Task Name, Project, Code Source, Source Code Repository, and Branch, and click Next.

    Figure 2 Configuring basic build information

  4. Select a template for build and click Next. In this example, Java code is used. Therefore, select the Maven template.

    Figure 3 Selecting a build template

  5. On the Build Actions page, click Add step > Upload related > Upload Files to OBS > Add.

    Figure 4 Uploading a file

  6. On the Parameters page, configure build parameters and default values by referring to Figure 5, and enable Runtime Settings. bucket_name: name of the OBS bucket to which the file is uploaded, for example, caetest.

    • file_name: name of the software package uploaded to the OBS bucket, for example, cae-backend.jar.
    Figure 5 Configuring build parameters

  7. On the Build Actions page, delete step Upload Software Package to Release Repository.

    Figure 6 Deleting step Upload Software Package to Release Repository

  8. Click Yes.
  9. Configure Upload Files to OBS.

    • Build Directory: Enter **/target/*.?ar.
    • Bucket Name: Use ${bucket_name}.
    • OBS Directory: Use the default value.
    • File Name: Use ${file_name}.
    Figure 7 Configuring Upload Files to OBS

  10. Click Create and Run in the upper right corner, confirm the runtime parameter, and click Confirm.

    Figure 8 Running a task

  11. View the build log and wait until the build is successful and the software package is uploaded to OBS.
  12. Log in to OBS and check whether the software package has been uploaded to the OBS bucket.

    Figure 9 Viewing an OBS bucket

Creating a Pipeline to Upgrade CAE Components Using the OBS Software Package

Create a CodeArts pipeline.

  1. Go to the CodeArts homepage.
  2. Choose Services > Pipeline. On the Pipeline page, click Create Pipeline.

    Figure 10 Selecting a service
    Figure 11 Creating a pipeline

  3. On the Create Pipeline page, set Name, Pipeline Source, Repository, and Default Branch, and click Next.

    Figure 12 Configuring basic pipeline information

  4. In Template, choose All > Blank Template and click OK.

    Figure 13 Selecting a template

  5. On the Task Orchestration page, click Stage. Click and change the names of stages 1 and 2 to Build and Deploy, respectively.

    Figure 14 Creating a stage

  6. Create a build job.

    • In the Build stage, click Job.
      1. On the NewJob page, click Build > Build > Add.
        Figure 15 Creating a task
        Figure 16 Adding a build job
      2. Select the created build job and repository, set bucket_name and file_name configured in 6 as the pipeline parameter, and click OK.
    • In the Deploy stage, click Job.
      1. Enter CAE in the search box and click . Select the CAE Release extension and click Add.
        Figure 17 Adding a deploy job
      2. Configure the extension parameters and click OK.
        • Region: Select a region for deployment, which is the same as the CodeArts region.
        • Environment: Select the environment to which the component belongs.
        • Application: Select the application to which the component belongs.
        • Component: Select the component to be upgraded. (You need to select a component that is deployed using the software package in CAE.)
        • Component Source: Select Software packages.
        • Runtime System: Select the runtime system corresponding to the software package.
        • Software Package Repository: Select OBS.
        • Software Package Address: See Parameters.
        Figure 18 Configuring the extension parameters
      3. On the Parameter Configuration page, add custom parameters by referring to Parameters.
        • bucket_name: name of the OBS bucket, for example, caetest.
        • file_name: name of the software package uploaded to the OBS bucket, for example, cae-backend.jar.
        • file_dir: directory for storing the software package uploaded to the OBS bucket, for example, /test/ (if the root directory is /).
        • obs_address: address of the OBS bucket. The format is obs.Region project name.myhuaweicloud.com.
        Figure 19 Configuring custom parameters

  7. Click Save and Run. On the Execution Configuration page, confirm the configurations and click Run.

    Figure 20 Running a task
    Figure 21 Confirming the pipeline configurations

  8. On the pipeline details page, view the pipeline execution result.

    Figure 22 Viewing the pipeline execution result

  9. Log in to CAE and check the component status. If Upgraded is displayed in the Last Change Status/Time column, the component has been upgraded using the CodeArts pipeline.

    Figure 23 Viewing component status

Parameters

Table 1 Parameters

Parameter

Mandatory

Type

Description

bucket_name

Yes

String

OBS bucket name. The region selected for the CAE release extension must be the same as the region where the OBS bucket is located.

file_name

Yes

String

Name of the software package uploaded to the OBS bucket.

file_dir

Yes

String

Directory for storing the software package uploaded to the OBS bucket. The directory must end with a slash (/). If the directory does not exist in the OBS bucket, it will be automatically created. For example, the root directory is /, and the test directory in the root directory is /test/.

obs_address

Yes

String

The format is obs.Region project name.myhuaweicloud.com. The region project name is region. For details, see Obtaining Values.

Software Package Address

Yes

String

Address of the software package uploaded to OBS. Enter https://${bucket_name}.${obs_address}${file_dir}${file_name}.

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback