简体   繁体   English

jenkins仅基于一个回购中的更改即可触发构建

[英]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.

相关问题 如何在Jenkins中一次远程触发一个构建? - How to remotely trigger just one build at a time in Jenkins? 当特定文件夹更改时在 Jenkins 中构建触发器 - Build trigger in Jenkins when a specific folder changes 如何通过侦听另一个仓库的变更来触发一个仓库的构建 - How to trigger build on one repo by listening to change on another repo 当更改被推送到Github时,无法使Jenkins触发构建 - not been able to make Jenkins trigger a build when changes are pushed to Github 从git推送更改时触发Jenkins构建 - Trigger Jenkins to build when changes are pushed from git 如何在提交给子模块的更改时触发jenkins的构建? - how to trigger build in jenkins when changes committed to submodule? Jenkins仅在发生更改时如何按计划触发构建 - Jenkins how to trigger build on a schedule only when there are changes 从 GIT Repo (Jenkins/GIT) 构建一个项目 - Build One Project from GIT Repo (Jenkins/GIT) 如果仅在特定文件夹结构集而不是整个存储库上有任何 GIT 更改,如何触发 jenkins 作业 - How to trigger a jenkins job if there is any GIT changes only on specific set of folder structure not entire repo 使用CruiseControl.Net时如何触发Git存储库子目录中更改的构建? - How to trigger build for changes in a subdirectory of a Git repo when using CruiseControl.Net?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM