如何防止为匿名 Hudson / Jenkins 作业构建创建伪用户?
使用 Hudson 或 Jenkins 持续集成服务器,当匿名用户或 CI 服务器轮询存储库触发构建时,会使用从上次提交的提交信息中抓取的数据创建伪用户。
我该如何防止这种情况发生,因为它会使注册用户列表变得混乱?我尝试默认使用接收后挂钩来安排构建,但对于某些存储库(例如由 SourceForge 托管的存储库),这不是一个选项,因为运行存储库的计算机被阻止访问外部 URL
With the Hudson or Jenkins continuous integration servers, when a build is triggered either by an anonymous user, or by the CI server polling the repository, a pseudo-user is created with the data scraped from the commit information of the last commit.
How do I prevent this, as it's cluttering the list of registered users? I try to default to using post-receive hooks for scheduling builds, but for some repositories (e.g. those hosted by SourceForge), this is not an option as the machine running the repository is prevented from accessing external URLs
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法阻止创建它们,因为它们涉及 Jenkins 日志记录和跟踪的工作方式。但是,如果您需要查看仅“真实”用户的列表,您可以通过管理 jenkins/manage users 轻松完成此操作 - 缺少登录的用户将不会出现。
You can't prevent these from being created, as they are involved with how Jenkins logging and tracking works. However, if you need to see a list of only "real" users, you can do this easily by going to manage jenkins/manage users - users that lack a login will not appear.