如何在Perforce提交上触发Jenkins构建 [英] How to trigger a Jenkins build on a Perforce submit

查看:245
本文介绍了如何在Perforce提交上触发Jenkins构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Jenkins与Perforce一起使用.我已经下载了 P4插件,并且我已经阅读了文档但是我还是有点困惑.在我的Jenkins项目中,我将构建触发器设置为"Perforce触发构建".我假设这意味着我需要向Perforce添加触发器,以告诉Jenkins运行构建,但是我不知道如何执行此操作.

I am using Jenkins with Perforce. I have downloaded the P4 Plugin, and I have read over the documentation but I am still a bit confused. In my Jenkins project, I have the build trigger set to "Perforce triggered build". I'm assuming that means I need to add a trigger to Perforce that tells Jenkins to run a build, but I have no idea on how to do that.

我无法找到有关如何从Perforce实施触发器以通知Jenkins需要运行的触发器的任何文档.我可以从Perforce找到有关如何设置基本触发器的文档,但是从Jenkins找不到关于如何设置实际连接以触发Perforce提交上的构建的任何内容.

I have not been able to find any documentation on how to implement a trigger from Perforce to notify Jenkins it needs to run. I can find documentation from Perforce on how to setup basic triggers, but I can not find anything from Jenkins on how to set up the actual connection to trigger builds on Perforce submits.

在Jenkins的更改"选项卡上,我能够看到提交给Perforce的内容,因此我知道Perforce和Jenkins至少在交流.最初,我以为如果我检查了"Perforce触发的构建",Jenkins会自动在Perforce提交上运行该构建,但事实并非如此.

On the "Changes" tab in Jenkins, I am able to see the what was submitted to Perforce, so I know that Perforce and Jenkins are at least communicating. Initially, I thought that Jenkins would just automatically run the build on a Perforce submit, if I had "Perforce triggered build" checked, but that doesn't seem to be the case.

所以我的问题是:

我是否正确假设我需要手动创建要添加到Perforce的触发器?

Am I correct in assuming that I need to manually create a trigger to be added to Perforce?

如果是这样,有人知道我可以作为指导的任何文档或示例吗?

If so, does anyone know of any documentation or examples that I can look to as a guide?

推荐答案

是的,您需要向Perforce添加触发器. 此处已详细记录

Yes, you need to add a trigger to Perforce. It's well documented here.

这篇关于如何在Perforce提交上触发Jenkins构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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