I am trying to configure Jenkins for a project. I use git as SCM and gerrit as a code checker. My project consists of many repositories, so I use the MultipleSCM plugin in Jenkins to register various repositories. I configured Gerrit Trigger to run the build when code validation occurs. The problem is that when a user makes changes to any repo all, all other repositories get the same CHANGE data that is not valid in any other repo.
> git rev-parse 873a6b7209411fa825f35da1c6fbc7f280cff06b^{commit}
How to solve a problem? Please help. Is there any work. Thanks in advance.
Jenkins Version: 1.588 Plugins Used: git, gerrit-trigger, multiple-scm. I have two gerrit projects (gerrit1 and gerrit2). I use the gerrit project in the same jenkins work (because they depend). If one developer makes changes to gerrit1 and clicks on gerrit, Jenkins gets a trigger and starts building. This work is perfect when there is one gerrit project. But in my case, if there are changes in gerrit1, gerrit2 will have the same changes in jenkins. Therefore, the check is not performed for gerrit2, as the branches may be different.
source share