Help Center/ CodeArts Artifact/ Best Practices/ CodeArts Artifact Best Practices
Updated on 2024-11-11 GMT+08:00

CodeArts Artifact Best Practices

This document summarizes the operation practices of CodeArts Artifact in common application scenarios. It provides detailed solutions for each practice, helping users easily use CodeArts Artifact in different application scenarios.

Table 1 CodeArts Artifact best practices

Best Practice

Description

Releasing Maven Components and Archiving to a Self-Hosted Repo

CodeArts Artifact focuses on and manages the staging software packages (usually built by or packed from the source code) and their lifecycle metadata. The metadata includes basic properties such as the name and size, repository paths, code branch information, build tasks, creators, and build time. Throughout the development process, the software package is continuously refined across different versions.

The management of software packages and their properties is the basis of release management. Therefore, developers need to regularly review the version history of software packages. This practice describes how to archive a Maven component by version to a self-hosted repo via a build task.

Releasing/Obtaining an npm Component via a Build Task

A self-hosted repo manages private component packages (such as Maven) corresponding to various development languages. Different development language components vary in the archive format. A self-hosted repo manages private development language components and shares them with other developers in the same enterprise or team.

This practice describes how to release a component to an npm repository via a build task and obtain a dependency from the repository for deployment.

Releasing/Obtaining a Go Component via a Build Task

This practice describes how to release a component to a Go repository via a build task and obtain a dependency from the repository for deployment.

Releasing/Obtaining a PyPI Component via a Build Task

This practice describes how to release a component to a PyPI repository via a build task and obtain a dependency from the repository for deployment.

Uploading/Obtaining an RPM Component Using Linux Commands

This practice describes how to use Linux commands to upload a component to an RPM repository and obtain a dependency from the repository.

Uploading/Obtaining a Debian Component Using Linux Commands

This practice describes how to use Linux commands to upload a component to a Debian repository and obtain a dependency from the repository.

Batch Migrating Maven/npm/PyPI Components to a Self-Hosted Repo

Self-hosted repos allow you to manually upload and download components. They can also interconnect with your local development environment to upload and download components. Uploading numerous packages one at a time can be cumbersome. You can use the migration tool provided by self-hosted repos to upload components in batches from Nexus or other repositories.