☁️CodeArts-Cheatsheet / How to Use CodeArts Service on HUAWEI CLOUD

Mehmet Altuğ Akgül
Huawei Developers
Published in
5 min readOct 7, 2023

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

  1. Create a project.
  2. Log in to CodeArts and click Create Project.
  3. Click Scrum, enter the project name, and click OK.
  4. Create a work item.
  5. Click a project, choose Work from the navigation bar, and click the Work Items tab.
  6. 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.

  1. Go to the created project and choose Code > Repo.
  2. Click New Repository, Template Repository, or Import Repository, enter basic information such as the repository name as prompted, and click OK.
  3. After a code repository is created, click the repository name on the repository list page to view the files in the repository.
  4. Clone or push code.
  5. Click the username in the upper right corner of the page and choose This Account Settings from the drop-down list.
  6. In the navigation bar, choose Repo > SSH Keys.
  7. Click Add SSH Key, enter the name, enter the key generated in Installing and Configuring the Git Client, agree to statements, and click OK.
  8. Return to the CodeArts Repo page and click the name of the repository to be cloned.
  9. Click Clone/Download to copy the repository SSH download link.
  10. 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.
  1. Create a code check task.
  2. Create a build task.
  3. Create and deploy an application
  4. Configure a pipeline
  5. 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.

References

--

--

Mehmet Altuğ Akgül
Huawei Developers

Electrical and Electronics & Cloud Product Manager • MBA • Trader • Investor • Lifelong Learner • ✉ info@altug.dev