How to trigger a Jenkins build on a Perforce submit

女生的网名这么多〃 提交于 2021-01-27 07:16:37

问题


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.

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.

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.

So my questions are:

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?


回答1:


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



来源:https://stackoverflow.com/questions/42233905/how-to-trigger-a-jenkins-build-on-a-perforce-submit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!