[英]jenkins trigger a build base on changes in just one repo
I have a job in jenkins that clone 2 repositories, A and B, A is a repo with all the tools to build, move files around, emails etc... and B is a xcode project, 我在詹金斯(Jenkins)有一份工作,可以克隆2个存储库A和B,A是包含所有用于构建,移动文件,发送电子邮件等工具的仓库,而B是xcode项目,
as my understanding is if i have trigger base on Poll SCM * * * * *, any change on the 2 repos A or B will start the job? 因为我的理解是,如果我基于Poll SCM进行触发* * * * *,那么2个存储库A或B的任何更改都将开始工作?
I just want to trigger the job when something change on repoB, then update repo A and B. 我只想在repoB发生更改时触发工作,然后更新repo A和B。
thanks =) 谢谢=)
You can create a pipeline in which you can add your upstream dependency for Project A. 您可以创建一个管道,可以在其中添加项目A的上游依赖项。
Below are steps. 以下是步骤。
For Project B : Poll SCM ie whenever a change is pushed to GIT 对于项目B:轮询SCM,即每当将更改推送到GIT时
For Project A : Build whenver Project B build gets trigered/builds succesfully , basically add this as downstream for Project B. 对于项目A:每当项目B的构建被触发/成功构建时进行构建,基本上将其添加为项目B的下游。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.