[英]github webhook to trigger job on multiple jenkins server
My scenario:我的场景:
Desired outcome:期望的结果:
Is there any solution for this?有什么解决办法吗?
Depending where your repository is hosted (github, gitlab, bitbucket) you might be able to use a pipeline within the repository to look for the changed files and trigger a webhook on the correct server accordingly.根据您的存储库的托管位置(github、gitlab、bitbucket),您可能能够使用存储库中的管道来查找更改的文件并相应地在正确的服务器上触发 webhook。
Another approach could be to always trigger a special job on server A which then looks for changed files and triggers the correct job on the right server.另一种方法可能是始终在服务器 A 上触发一个特殊作业,然后查找更改的文件并在正确的服务器上触发正确的作业。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.