Alibaba Cloud DevOps empowers Travel One with continuous delivery

Updated at:

By adopting Alibaba Cloud DevOps, Travel One achieved significant improvements in release efficiency and cost savings, successfully building an efficient pipeline management system that greatly enhanced product innovation iteration and R&D efficiency.

Background

Travel One is a leading brand in one-stop enterprise consumption management platforms, covering one-stop enterprise business travel management, one-stop enterprise transportation management, one-stop enterprise dining management, and one-stop enterprise welfare management platforms. The platform aims to provide comprehensive one-stop self-service booking, intelligent expense management, centralized enterprise procurement, and unified corporate settlement.

  • Vision: To make enterprise consumption compliant and efficient, satisfying both enterprises and employees.

  • Mission: To be a leading brand in enterprise consumption management platforms, providing warm and caring enterprise consumption management services.

  • Focus: Leveraging high-quality business travel, transportation, dining, and welfare resources to serve all employees in enterprise consumption scenarios, primarily focusing on business travel, transportation, dining, and welfare consumption scenarios characterized by full-employee usage and high-frequency, small-amount expenditures borne by enterprises.

Travel One serves over 30 central state-owned enterprise groups, over 100 state-owned enterprise groups, and more than 1,000 listed companies and large group companies. The company has successfully delivered nearly 20 central state-owned enterprise business travel centralized procurement 1+N platform systems, with extensive experience in business travel centralized procurement consulting, product R&D, system customization, project delivery, business launch, and procurement implementation.

As the business scale and number of served enterprises continue to grow, customer needs are becoming increasingly diverse and complex. Travel One highly values user experience and seeks more efficient solutions for experience enhancement.

Challenges and pain points

Travel One adopts a microservices architecture with over 200 services, deployed in dual-data-center disaster recovery with grayscale releases. The company used SVN for code branch management, Jenkins for build task management, and Kubernetes for container management.

As the company continued to expand, challenges emerged in release efficiency. Specific issues included:

  • To adapt to rapid Internet iteration, frequent releases were required, resulting in heavy workload and long production time.

  • Jenkins integration with code detection and security detection lacked online results, leading to low efficiency in fixing and checking issues.

Results and benefits

  • 480 pipelines with an average release time of 3 minutes per release, averaging 6,000 build minutes per month, running stably for 1 year.

  • Release efficiency: 70% improvement in release efficiency.

  • Cost savings: Reduced daily maintenance costs for Jenkins and related tools, saving 6 servers.

How did they achieve this?

1. Design appropriate pipelines based on company conditions and Alibaba Cloud DevOps features

Pipelines can generally be divided into 4 steps: pulling branch code, code scanning, code compilation, image building and uploading to repository, and deployment. Based on enterprise conditions, you can add: SonarQube integration and automated interface testing integration.

Travel One's environments are divided into R&D integration environment, pre-release environment, grayscale release environment, and full release environment. The R&D integration environment enables rapid integration and testing without manual intervention checkpoints. The pre-release environment requires sufficient testing in the R&D integration environment before release. The grayscale release environment deploys to a small number of users for operational verification after pre-release validation. The full release environment deploys to all users after grayscale validation.

Based on actual conditions, Travel One designed pipelines as follows: The R&D integration environment is set as an independent pipeline (internal network pipeline), while the pre-release, grayscale release, and full release environments are set as one pipeline (external network pipeline).

Internal network pipeline prioritizes efficiency. The pipeline is automatically triggered after code submission, going through code standard scanning and security scanning, then directly compiling, building, and deploying. Code scanning only produces results without setting red lines; issues can be resolved before external network release.

In the internal network pipeline, webhooks are configured in the source stage to automatically trigger after code submission. In the code deployment stage, the Webhook Notification Plugin is added with a Feishu robot webhook address configured (such as https://open.feishu.cn/open-apis/bot/hook/...) to instantly notify the group of build results.

External network pipeline prioritizes quality stability. After internal network testing passes, the pipeline is manually triggered, first passing code standard detection and code security detection red lines. Manual checkpoints are added to review releases, ensuring internal network testing has passed and release conditions are met. After review approval, the pre-release environment is released. After testing and product validation, the grayscale environment is released. After the grayscale environment runs stably, the full release environment is released.

At the beginning of going online, code standards and code security can prioritize resolving critical and high-risk issues, with medium and general issues resolved later in batches or incrementally.

In actual pipeline configuration, taking Java branch code and Java YFS code as examples, pipeline stages include preset jobs, association configuration, presupplied application deployment configuration, deployment stage configuration, release strategy deployment, full environment variable configuration, and pre-release validation. Each stage can configure branch versions (such as release/15.9), forced build commands, pre-release production environment deployment, grouped release strategies, and full environment variables.

2. Establish templates to unify rules and reduce maintenance costs

After successfully establishing test pipelines, create pipeline templates to standardize pipeline creation and save creation costs. Pipeline templates can be saved directly from existing pipelines or created new.

Go to Enterprise Settings, select Pipeline Template Management in the left navigation pane, and click Create Enterprise Template in the upper-right corner to create a template.

3. Establish pipelines and control permissions to ensure pipelines execute according to specified processes

Establish service pipelines through templates (or copy existing pipelines), and grant corresponding personnel pipeline permissions: all permissions, run permissions, and view permissions.

On the My Pipelines page in Alibaba Cloud DevOps Flow, you can view all created pipelines and their recent run numbers, run status, and owners, and quickly filter through the Pipelines I Participate In and Pipelines I Created tabs.

4. Set pipeline groups and tags for quick query and filtering

A company may have multiple product lines or R&D teams, with each team responsible for different content. To avoid mutual influence, pipelines can be distinguished through groups and tags. Travel One's product lines are divided into air tickets, hotels, large transportation, dining, etc. Groups are distinguished by product line, and different modules within product lines are distinguished by tags.

On the pipeline's Basic Information page, set Environment to Daily Environment, select the corresponding pipeline group for Tags, and set Ownership to the corresponding team (such as Microblock R&D) to achieve grouping by product line and differentiation by module tags.

5. Pipeline improvements

After running pipelines for a period of time, Travel One made some improvements, such as incorporating online configuration file modifications into pipeline control and releasing through pipelines; integrating Python automated interface testing, automatically triggering Python automated test scripts after deployment and generating test reports; and integrating SonarQube to strengthen code security scanning.

Conclusion

Alibaba Cloud DevOps is an excellent product that deeply integrates with Alibaba Cloud products, offers rich features, simple configuration, and continues to be optimized and improved. Enterprises can quickly and cost-effectively build a pipeline suitable for themselves based on the capabilities provided by pipelines. Travel One also leveraged Alibaba Cloud DevOps to achieve rapid enterprise product innovation iteration and R&D efficiency upgrades. Thanks to the empowerment of Alibaba Cloud DevOps products and the support of Alibaba Cloud DevOps colleagues during implementation.

The above content is only some humble opinions from Travel One after implementation, hoping to bring some help to colleagues in the industry.

image

About the author

Yuantan joined Travel One in 2012, with many years of technical management and architecture experience. As a member of the Travel One Technical Committee, he has been responsible for multiple core product architectures and is committed to improving R&D quality and efficiency.