El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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/ CodeArts Pipeline/ Best Practices/ Fixing a Bug for Quick Release Through a Change-triggered Pipeline

Fixing a Bug for Quick Release Through a Change-triggered Pipeline

Updated on 2024-11-08 GMT+08:00

Overview

CodeArts Pipeline provides the microservice model for enterprises. Each microservice is independently developed, verified, deployed, and rolled out, accelerating requirement release. This model also lets enterprises organize teams by function, optimize management models, and improve operation efficiency.

Using this model, you can create change-triggered pipelines to associate them with change resources and release changes for quick project delivery.

Procedure

The following describes how to use a change-triggered pipeline to fix a bug for quick release.

Step 1: Create a Microservice

Step 2: Create a Change-triggered Pipeline

Step 3: Create a Change

Step 4: Execute a Change-triggered Pipeline

Table 1 Procedure

Step

Description

Create a microservice

Manage a specific service function.

Create a change-triggered pipeline

Release a change in a microservice.

Create a change

Associate with bug fixing work items.

Execute a change-triggered pipeline

Release the updated code.

Preparations

Step 1: Create a Microservice

  1. Log in to the Huawei Cloud console.
  2. Click in the upper left corner of the page and choose Developer Services > CodeArts Pipeline from the service list.
  3. Click Access Service.
  4. Click Homepage from the top navigation pane.Search for the project created in Preparations and access the project.
  5. In the navigation pane on the left, choose CICD > Pipeline.
  6. Click the Microservices tab.
  7. Click Create Microservice. On the displayed page, configure parameters.

    Table 2 Microservice parameters

    Parameter

    Description

    Project

    Keep the default value, which is the project of the microservice.

    Microservice Name

    Enter Microservice01.

    Code Source

    Code source associated with the microservice. Select Repo.

    Repository

    Select the repository Repo01 created in Preparations.

    Default Branch

    Select master.

    Language

    Development language for the microservice. Select Java.

    Description

    (Optional) Enter a microservice description.

  8. Click OK.

Step 2: Create a Change-triggered Pipeline

  1. In the microservice list, click a microservice name. The Overview page is displayed.
  2. Switch to the Pipelines tab.
  3. Click Create Pipeline. On the displayed page, configure parameters.

    Table 3 Pipeline parameters

    Parameter

    Description

    Project

    Keep the default value, which is the project of the pipeline.

    Name

    Use the default name.

    Code Source

    Keep the default value, which is the same as that of the microservice.

    Repository

    Keep the default value, which is the same as that of the microservice.

    Default Branch

    Keep the default value, which is the same as that of the microservice.

    Repo Endpoint

    This is mandatory if you enabled Change-based Trigger. Select the authorization endpoint HttpsEndpoint01 created in Preparations.

    Alias

    (Optional) If an alias is set, the system parameters are generated for the repository.

    Change-based Trigger

    Enable it to set current pipeline to a change-triggered one. It is enabled in this example.

    Description

    (Optional) Enter a pipeline description.

    NOTE:

    Change-triggered pipelines can only be triggered by changes. A microservice can only have one change-triggered pipeline.

  4. Click Next and select the Maven-Build template. Stages and jobs will be generated. You can retain the default settings.
  5. Click Save.

Step 3: Create a Change

  1. Access the created microservice.
  2. Click the Changes tab.
  3. Click Create Change. On the displayed page, configure parameters.

    Table 4 Change parameters

    Parameter

    Description

    Change Subject

    Enter fix-a-bug.

    Repository

    Keep the default value, which is the same as that of the microservice.

    Branch

    The development branch for the change. After the change is successfully released through the pipeline, the branch will be automatically merged to the default branch of the microservice. Select Pull new from default and enter the branch name bugfix.

    Associated Work Item

    Select the work item BUGFIX created in Preparations.

  4. Click OK.

    After the change is created, the system creates a feature branch based on the microservice default branch. You can commit code to this feature branch.

Step 4: Execute a Change-triggered Pipeline

After the code is updated, you can execute the change-triggered pipeline.

  1. On the change list page, click the change name.
  2. Click Submit for Release in the upper right corner. In the displayed dialog box, confirm the release.

    Figure 1 Submitting for release

  3. Click OK. The release list page is displayed.
  4. Click Execute in the upper right corner. In the displayed dialog box, select the submitted change, and retain the default settings.

    Figure 2 Execution configuration

  5. Click Execute.

    During pipeline running, the MergeReleaseBranch and MergeDefaultBranch stages are automatically generated. The newly pulled feature branch is merged to the integration branch.

    After the code check and build jobs are successfully executed, the pipeline proceeds to the MergeDefaultBranch stage with a confirmation dialog box displayed.

  6. Click Continue. After the MergeDefaultBranch stage is executed, the system:

    • Updates the change status to Released.
    • Updates the status of the BUGFIX work item to Closed.
    • Merges the code on the release branch to the default branch.

    A change release has been completed.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback