☁️CodeArts-Cheatsheet / How to Use CodeArts Service on HUAWEI CLOUD
Introduction
I wanted to introduce you to HUAWEI CLOUD services that are used very often when creating this cheatsheet and these articles will be a quick reference for you.
I strongly recommend you check the support page and documentation of the relevant service for detailed information and learn by testing the services.
CodeArts is a one-stop DevSecOps platform that provides out-of-the-box cloud services for requirement delivery, code commit, check, build, verification, deployment, and release throughout the entire software lifecycle.
https://www.huaweicloud.com/intl/en-us/product/devcloud.html
- Create a project.
- Log in to CodeArts and click Create Project.
- Click Scrum, enter the project name, and click OK.
- Create a work item.
- Click a project, choose Work from the navigation bar, and click the Work Items tab.
- Click Create Work Item, select a work item type, and enter information such as the title, priority, and handler.
Configuring a Code Repository
Create a code repository.
- Go to the created project and choose Code > Repo.
- Click New Repository, Template Repository, or Import Repository, enter basic information such as the repository name as prompted, and click OK.
- After a code repository is created, click the repository name on the repository list page to view the files in the repository.
- Clone or push code.
- Click the username in the upper right corner of the page and choose This Account Settings from the drop-down list.
- In the navigation bar, choose Repo > SSH Keys.
- Click Add SSH Key, enter the name, enter the key generated in Installing and Configuring the Git Client, agree to statements, and click OK.
- Return to the CodeArts Repo page and click the name of the repository to be cloned.
- Click Clone/Download to copy the repository SSH download link.
- Run Git Bash and enter the following command to clone the cloud repository to your local address
git clone repository_SSH_URL
// After editing the code locally, enter the following commands in sequence in Git Bash to save the code and push it to the code repository:
git add .
git commit -m "commit_message"
git push origin master
Configuring a Pipeline
CodeArts Pipeline integrates with CodeArts Check, CodeArts Build, and CodeArts Deploy tasks. You can flexibly configure tasks in the pipeline as required. The pipeline is optional.
- CodeArts Check performs static and security checks. The code check is optional.
- CodeArts Build compiles the source code of software into a target file and packs the configuration file and resource file. The build is optional. For some projects, such as PHP and Node.js frontend code, you do not need to configure build tasks.
- CodeArts Deploy deploys a software package or code to a VM or container. Deployment is optional. For some projects, such as mobile app development, this deployment mode is not required.
- Create a code check task.
- Create a build task.
- Create and deploy an application
- Configure a pipeline
- Configure the task orchestration, parameters, and execution plan as required, and click Save and Run.
CodeArts Req
Provides agile and efficient development collaboration services (team space, Scrum requirement models, agile sprints, Kanban collaboration, requirement management, defect tracking, document management, knowledge collaboration, online collaboration, and dashboard report customization) for software development teams.
CodeArts Repo
Huawei’s full-stack self-developed code hosting service provides distributed code management and collaborative development capabilities based on Git, helping enterprises of different scales improve R&D quality and efficiency.
CodeArts Pipeline
Provides flexible orchestration, millions of concurrent scheduling, and built-in enterprise R&D governance models.
CodeArts Build
Provides high-speed, low-cost, and easy-to-configure hybrid language build capabilities to help customers shorten the build time and improve efficiency.
CodeArts Deploy
Provides professional application deployment services of multiple forms and technology stacks, supports parallel deployment and seamless pipeline integration, standardizes deployment environments, and automates the deployment process.
CodeArts Artifact
CodeArts Check
Offers static and security checks for multi-language code using over 7000 style, quality, and security rules. It also provides bug fix suggestions to effectively manage code quality.
CodeArts Testplan
Related Services of CodeArts
Conclusion
In this article, I created a cheat sheet and quick reference page for you to use HUAWEI CLOUD services.
While using services, you should pay attention to billing and usage types. You should turn off unused services.
I recommend that you pay attention to these so that you do not encounter unexpected bills. I wish you good developments.