问题
I have two project namely say X and Y Where x contains all code and configuration And Y contains testData and Feature files which is manage by some other team. I had created a job in jenkins to run my X project initially which is working without any issue. Now I want at run time I poll the Y project and check if they had any new commits then first I merge it else leave it. Currently I am able to check the last commit but still not able to merge project My both X and Y are Karate API project
回答1:
I think you need to design differently. Maybe the right solution is X should create a JAR file. And then in Y you depend on that JAR file. Now it has become a standard CI / Jenkins situation.
My advice is don't try to re-invent polling and merging and whatnot - those are all solved problems.
回答2:
I achieve this using git submodule concept and it not required anything to done on CI.
git submodule add <repository URL
来源:https://stackoverflow.com/questions/55890159/i-want-to-merge-one-project-data-into-another-project-in-jenkins-how-can-i-achi