To help us debug your issue please explain:
Using conan v1.7.4 on Linux.
Conan should allow you to upload additional artifact properties for Artifactory while doing the upload process. I'm aware of the artifact.properties file, but this is at the global level ~/.conan/artifact.properties
. I think it makes sense to be able to override this file when calling conan upload
.
The use case we have in mind is putting some build metadata related to our system with the package that got uploaded.
There is some information about that in here: https://docs.conan.io/en/latest/howtos/generic_ci_artifactory.html
Note that although the information of the link talks about CI, it could be done manually too.
Yes, the current file artifact.properties
is global and very limited.
What is your idea of adjusting the properties per package? Where these properties would come from? We need feedback to improve it. I'm thinking if a Conan plugin (to be released today in 1.8) could be a possibility to adjust the properties, maybe offering a better interface.
My first thought would be during the conan upload
command you could add a parameter to pass in an properties file. Something like --artifacts=artifact.properties
. That would essentially set the properties for anything getting uploaded. This would work well for packages that can generate the properties file outside of the build process.
Another use case might be to add an properties()
method that can call something like a self.set_prop(key, value)
. And during the upload process that gets run for the packages being uploaded.
Most helpful comment
My first thought would be during the
conan upload
command you could add a parameter to pass in an properties file. Something like--artifacts=artifact.properties
. That would essentially set the properties for anything getting uploaded. This would work well for packages that can generate the properties file outside of the build process.Another use case might be to add an
properties()
method that can call something like aself.set_prop(key, value)
. And during the upload process that gets run for the packages being uploaded.