I want to merge one project data into another project in jenkins. How can I achieve this?

随声附和 提交于 2019-12-13 08:28:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!