Artifactory Cocoapods包括/白名单 [英] Artifactory Cocoapods include/white list

查看:155
本文介绍了Artifactory Cocoapods包括/白名单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们公司中,我们正在将Artifactory建立到我们的工具链中.现在,我们为CocoaPods存储库提供了一个远程存储库.由于需要控制使用的Pod,我们希望使用include函数将允许的Pod列入白名单.

In our company we are establishing Artifactory into our toolchain. We have now a remote repository for the CocoaPods repository. As we are required to control the pods that are used, we would like to white list allowed pods with the include function.

因此,如果我们不受限制地使用存储库,则一切正常.但是如果我们有一个库的包含模式,例如看到打印屏幕,然后在Artifactory的fetchIndex请求上收到错误.在日志中,它是这样的:

So if we use a repository without restriction, everything works fine. But if we have an include pattern for a library, e.g. see print screen, then we get an error on the fetchIndex request of Artifactory. In the logs, this is what it looks like:

20161216094625|3|REQUEST|someIP|username|GET|/api/pods/cocoapods-master/index/fetchIndex|HTTP/1.1|404|0

有人通过人工制品对白名单豆荚进行过体验吗?

Does anybody have made experiences with white listing pods through artifactory?

推荐答案

Artifactory会将索引缓存在cocoapods存储库中的.specs文件夹下,无论该索引是本地存储库还是远程存储库(它将位于cache回购(如果是远程的话).

Artifactory caches the index under the .specs folder in your cocoapods repository whether it is a local repo or a remote one (it will be in the cache repo if remote).

主要出于性能原因而缓存索引,对于cocoapods repo-art插件以及指向该索引的任何其他远程存储库的正常流程都是必需的.

The index is cached mostly for performance reasons, and is required for the normal flow of the cocoapods repo-art plugin, and any other remote repositories that point to it.

只需为.specs文件夹添加一个包含模式,它就可以为您工作.

Simply add an include pattern for the .specs folder as well and it should work for you.

这篇关于Artifactory Cocoapods包括/白名单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆