Managing Multi-Project Branches in Git

半腔热情 提交于 2019-12-06 00:13:00

Setup a Jenkins server.

It can build each maven module as a separate project and then automatically rebuild any other projects that has a snapshot dependency relationship.

Update

The GIT plugin for Jenkins has a feature for managing the automatic merging of development feature branches into a "master" or "integration" branch. See the documentation:

https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-AdvancedFeatures

Another option is to control feature development using a code review tool like Gerrit. Again it's Gerrit that controls changes integrated onto the shared code stream and Gerrit can be integrated with Jenkins to ensuring all submitted change-sets pass the code tests.

Finally releases are cut using the M2 Release plugin, which is a wrapper around the standard release plugin. (Means you'll always have two types of build in Jenkins. Automated builds triggered by code commits and release builds explicitly triggered via the UI).

Look what I found looking for something else about Gitflow: https://github.com/nvie/gitflow

It doesn't work with Maven, so it doesn't fit my needs, but maybe it helps you.

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