-
Improvement
-
Resolution: Unresolved
-
Blocker
Hi,
Is Jenkins can build the job using more than one repo (like repo1, repo2, .. all changed need to be included in one build) and with same branch using TOPIC.
Here is the more explanation:
We use "repo sync" to pull the latest changes from dev branch (it is based on manifest file how we configure) from our host repository. My requirement is something like below:
$ cd <WORKING_DIR1>
$ repo sync
$ cd <repo1>
made some change, add and then push to gerrit using topic called "new-updates"
$ cd ../<repo2>
In repo2 also made some change, add and then push to gerrit using the same topic called "new-updates" . (So I pushed changes of repo1 and repo2 into gerrit using the same topic called "new-updates")
My requirement:
Here my requirement is Jenkins needs to trigger the build from gerrit using repo1 and repo2 changes (by using TOPIC called "new-updates"). I know Jenkins can trigger the build using one repo but I want Jenkins should use two changes (from repo1 and repo2) in one build using topic.
Can you let me know if there is any such solution.
Thanks
Laxma
Thank you for raising this: the current plugin is tightly coupled at the moment with the Jenkinsfile pipelines, which are tried to a single repository.
I believe your use-case would still make sense if a top-level repository (i.e. the super-project) would be used as common collector of all changes across repositories. Then the top-level repository could have a Jenkinsfile associated and that could get the subprojects tied to a topic.
What do you think?