Hi,
I am using Jfrog for uploading our conan packages. For different projects, at the time of build, we are creating buildInfo.json files. I am working on one problem where I want to merge or modify the generated buildInfo.
Problem description:
In one of our use-case, we want to merge different BuildInfo which were generated from different projects and at end do the promotion of built packages.
Example:
I have already created BuildInfo_projA.json and published that to artifactory. Then I am building ProjB where I am downloading BuildInfo_projA.json and want to add the content of that to the buildInfo generated in ProjB. Additionally, ProjA might get build several times with different update before ProjB gets build and when ProjB is getting build, I need info of all BuildInfo that was generated through ProjA. So for the latest buildInfo, I want info of all the BuildInfo which was successfully created and published. Also, I want to track the promotion status so find which packages were already promoted.
What I tried:
I tried merging different buildInfo with jf rt ba but because the buildNumber and buildName is different, I can't directly merge them. So I tried merging two json files, which worked but then it is giving error at the time of promotion. It is not promoting anything. (I think because of different buildNumber and buildName??).
I also tried modifying the buildInfo and adding status like "not promoted". But then I cant even edit the buildInfo from other pipeline.
Hope I was able to explain my issue exactly. Is there a way to merge or modify buildInfo as per my use-case? Is there any other way I can use to solve the issue.
Hi,
I am using Jfrog for uploading our conan packages. For different projects, at the time of build, we are creating buildInfo.json files. I am working on one problem where I want to merge or modify the generated buildInfo.
Problem description:
In one of our use-case, we want to merge different BuildInfo which were generated from different projects and at end do the promotion of built packages.
Example:
I have already created
BuildInfo_projA.jsonand published that to artifactory. Then I am building ProjB where I am downloadingBuildInfo_projA.jsonand want to add the content of that to the buildInfo generated in ProjB. Additionally, ProjA might get build several times with different update before ProjB gets build and when ProjB is getting build, I need info of all BuildInfo that was generated through ProjA. So for the latest buildInfo, I want info of all the BuildInfo which was successfully created and published. Also, I want to track the promotion status so find which packages were already promoted.What I tried:
I tried merging different buildInfo with
jf rt babut because thebuildNumberandbuildNameis different, I can't directly merge them. So I tried merging two json files, which worked but then it is giving error at the time of promotion. It is not promoting anything. (I think because of differentbuildNumberandbuildName??).I also tried modifying the buildInfo and adding status like "not promoted". But then I cant even edit the buildInfo from other pipeline.
Hope I was able to explain my issue exactly. Is there a way to merge or modify buildInfo as per my use-case? Is there any other way I can use to solve the issue.