Jenkins是否自动创建上游/下游? [英] Does Jenkins Create Upstream/Downstream automatically?

查看:131
本文介绍了Jenkins是否自动创建上游/下游?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用詹金斯进行持续集成.我创建了单独的视图,例如服务器A的视图A,服务器B的视图B等.

I am using jenkins for continuous integration. I have created seperate views like view A for server A , view B for server B etc.

每个视图都基于服务器的环境属性来构建我的项目.

Each view builds my project based on the server's environment properties.

但是我可以看到,即使没有显式创建上游和下游无关的东西,它们也会被创建.有什么解决办法吗? :(

But i could see that irrelevant upstream and downstream are getting created even when it is not created explicitly. Is there any solution for this? :(

推荐答案

在Jenkins中,当您有相互依赖的项目时,Jenkins可以跟踪哪个上游项目的内部版本,哪个下游项目的内部版本,使用指纹支持创建的记录.

In Jenkins,When you have projects that depend on each other, Jenkins can track which build of the upstream project is used by which build of the downstream project, by using the records created by the fingerprint support.

要使此功能正常工作,必须满足以下条件:

For this feature to work, the following conditions need to be met:

上游项目记录其构建工件的指纹下游项目记录其使用的上游文件的指纹.这使Jenkins可以关联两个项目.

The upstream project records the fingerprints of its build artifacts The downstream project records the fingerprints of the upstream files it uses This allows Jenkins to correlate two projects.

因此,可能会自动创建上游和下游.因此,在项目配置中,取消选中该选项

Because of this, the upstream and downstream might be created automatically. So, in the project configuration, uncheck the option

构建触发器 每当建立SNAPSHOT依赖项时就进行构建

Build Triggers Build whenever a SNAPSHOT dependency is built

这将删除所有现有的上游下游,即使在明确删除流依赖性之后.

This will remove all the upstream downstream that are existing even after deleting the streaming dependency explicitly.

这篇关于Jenkins是否自动创建上游/下游?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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