This document describes how to store Conan artifacts in CODING-AR for centralized artifact management and version control. The following sections introduce how to create an artifact, configure authentication, and pull and push artifacts.
Open CODING-AR
1. Log in to the CODING Console and click Use Now to go to CODING page.
2. Click in the upper-right corner to open the project list page and click a project icon to open the project. 3. In the menu on the left, click Artifact Management.
Preparations
Note:
Before you begin:
Install Python3.
Select Conan as the repository type.
Install Conan
Python 3.5 or later is required to install Conan using pip.
Install Conan with brew.
Create a Conan Package
Create a local demo directory.
Create a demo project.
Build a binary package for the project.
conan create . demo/testing
If an error message /bin/sh: cmake: command not found
is displayed, run the following command to install cmake
:
$ pip3 install cmake
$ brew install cmake
You can select manual or automatic configuration. Automatic configuration is used in the following example.
Click Generate configuration from access token in "Guide". A personal token will be generated as your access credential. You can manage your personal token in Personal Account Settings > Access Token.
Run the commands as prompted.
Push an Artifact
Run the command in the guide. Replace the variables with the name and version of the artifact to be pushed.
conan upload [package name]/[custom version number] --all -r=conan-go
Pull an Artifact
Run the pull command in the guide.
conan install [package name]/[custom vesion number]@ -r conan-go
Was this page helpful?