how to automatically build maven dependencies

83 views
Skip to first unread message

Jörg Wille

unread,
Apr 11, 2017, 12:06:49 PM4/11/17
to Jenkins Users
I have a multi-module maven project split in to different git repositories.
I am using a jenkinsfile with declarative syntax in each repo (in each branch in fact) to build each maven module. The build gets triggered from commits via webhooks in gitlab.
So far so good. Now when I commit changes to my project's API-module, I also want to trigger builds for all other modules, which use the API as upstream dependency.
So, the question is, (how) can I trigger downstream dependencies builds from other repositories via pipeline?
Any maven project available using declarative pipelines, which I could use as reference?

Jörg Wille

unread,
Apr 12, 2017, 2:56:17 AM4/12/17
to Jenkins Users
I still could not find a solution. But I am thinking of a workaround.
Is it possible to trigger a build from a different pipeline (from a different repository) in a pipeline?

If this is possible, I could trigger the build of the root-parent pom to guarantee that every dependency is build.
Reply all
Reply to author
Forward
0 new messages