-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the Artifact.properties using the CI/CD building process (TeamCity) #67
Comments
Hi @smileNika This is the conan-extensions repo, which is exclusively for Conan 2.0. For Conan 2.0 the command is the |
@memsharded Hi. Thank you for your reply. In my task I have to use conan 1.X (1.53 1.54). Then what is the correct way to store all BuildInfo? How the properties info usually save in Artifactory in 1.X versions of conan? Because as I understand from your words - artifact.properties file is just an output log file which represent what we could manually fulfill in Artifatory. But in a CI continuous building process it is not good idea open Artifactory and try to paste each important peace of information by myself. There should be an automation way continuously store updated building info for each package and represent this info before installation. One more question: I have seen in 2.0 documentation it is bad way to store multiple package revision for one recipe revision. But in a 1.X - there are lot of discussion regarding this topic. How to idetify PREV and RREV before installation. So why did you advice not to store few PREV in one RREV? and are there any mechanism how to prevent it towards good way of package storing? |
I am afraid that the BuildInfo doesn't work greatly with Conan 1.X (it never worked greatly, it might be generated, but it has some structural limitations), and at this stage this won't be a priority. The docs how to do it are in https://docs.conan.io/1/howtos/generic_ci_artifactory.html
In Conan 1.X, properties had to be managed via Artifactory API or the JFrog CLI, Conan never had a mechanism to handle Artifactory properties.
To clarify, multiple package-revisions PREV for the same package-id of the same recipe-revision. Then we learned that this is a bad approach, leading to many other problems. The right approach is modeling things correctly (like adding new So having more than 1 package revision can be avoided in 2.0 with:
|
okay. Understod about JFrog - then I need to learn more about its API or CLI aproach. about package revisions ----> are there any possibilities to handle it (1RREV : 1PREV) in conan 1.53 version? Could I restrict explicitly creation multiple packages for 1 recipe revision? |
Conan doesn't check properties to decide to install one revision or the other. The revision used by Conan is resolved with:
For Conan, the Artifactory properties does not exist in the dependency resolution, so they cannot be used to decide about a specific revision. And most likely they shouldn't, this would be aligned with other package managers for other languages. The version (and revision, which is part of the version) resolution always follow rules based on it. What you can do in the JFrog platform is use the infrastructure, for example you can tag with certain properties some specific revisions. Then you can use those properties to run a copy of the artifacts with some specific value of that property to another repository. Finally you can point Conan (or other language package manager) to that repository you copied the packages, and Conan will resolve those, because those are the only ones in that repository.
Yes, as long as you don't run |
Hi team,
I Have not found a solution for my request.
I have a task - I need to save some properties about git_commit / build_number _CI_CD/ HW_version in Artifactory.
I found artifact.properties** file in .conan cache folder which is possible to edit only locally. And after editing artifact.properties file I could upload packages manually into Artifactory repository. That is ok, and working fine.
But how to be with CI/CD building, when packages uploaded automatically ? How to edit this file in this case (like in server side)? Maybe, there are any other possibilities to save the props in packages revision?
One more question, how to read this properties? I mean not only in Artifactory GUI, but in command line. It is needed to check firstly which package to install based on these props values.
For example to see all recipe revisions or package ID, or package revisions I could use conan search command. But what about properties? Are there any commands to represent it in terminal?
The text was updated successfully, but these errors were encountered: