I have four subprojects (such as A, B, C, D A depends on B) in git repository, each of them has their own repository address, and now , I want to create a job for each of them on jenkins, when building, how to config to make the building of A can get the jar of B???
Do you have one or four Git repositories? And one or four Gradle builds?
I have four git repositories, and four jobs for the building
Please check out this simple example, if project B contains A module, so the build.gradle contains this ‘compile project(":A")’ , there is a job for project B, when it run ‘gradle jar’ on jenkins, can not resolve the ‘compile project(":A")’, because they are not in the same directory.