反向依赖 [英] Reverse dependencies
问题描述
我们正在将常春藤和Artifactory用作存储库.第三方库和我们的发行包都存储在Artifactory中.
We are using Ivy with Artifactory as a repository. In Artifactory both third-party libraries and our release packages are stored.
如果人工制品(第3方或我们的包装)中存在错误,我想找出哪些其他组件可能受到影响.
If there is a bug in an artefact (3rd party or our package) I would like to find out which other components are potentially impacted.
简而言之,我需要一个反向依赖报告.
In short, I need a reverse dependency report.
通常如何解决类似的问题?
How similar problems are usually solved?
推荐答案
查看Artifactory的构建集成和CI服务器插件.
插件在构建期间(包括CI服务器和构建工具)收集信息,管理工件的部署,最后发布构建信息"报告,其中包含有关构建环境,方法,依赖项和已发布工件的详细信息.
Check out Artifactory's build integration and CI server plugins.
The plugins collect information during build time (Both CI server and build tool), manage the deployment of artifacts and finally publish a "Build Info" report containing details regarding the build environment, method, dependencies and published artifacts.
在Artifactory中,您可以查看每个构建的低级版本,其中包含指向所有生成的工件,依赖项(如果它们存在于存储库中)和第三方许可证检测的链接.
这将对您有帮助,因为您还可以查看工件所涉及的所有构建,无论是作为产品还是从属.
Once in Artifactory, you can view a low down of each build with links to all produced artifacts, dependencies (if they exist in the repository) and even third-party license detection.
This will be helpful in your case, since you can also view all the builds an artifact was involved in, whether as a product or a dependency.
Artifactory的树浏览器可以显示工件所涉及的所有构建,它不仅适用于构建产品,而且适用于所有工件.请参见本部分中的屏幕截图作为示例.
Artifactory's tree browser can display all the builds an artifact was involved in and it applies to all artifacts, not only build products; see the screenshot in this section as an example.
Artifactory还获得了 REST资源,您可以查询其中某些工件已作为依赖项的构建;像树浏览器查看器一样,这也适用于所有工件.
Artifactory's also got a REST resource that lets you query for builds in which a certain artifact has acted as a dependency; like the tree browser viewer, this too applies to all artifacts.
Currently, plugins are available for Jenkins, TeamCity and Bamboo and they all support Maven, Ivy and Gradle builds.
这篇关于反向依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!