Is there an easy way to setup the Git Publisher in Jenkins to check for multiple builds before pushing code from either? For example, we have a C++ and a J2EE codebase that we build nightly - if these two get out of sync, we have environment issues.
Is there a way that we can use the Git Publisher plugin to check for two successful builds prior to merging the code for those streams?
For example, we have origin/int and origin/dev - we push to origin int, have Jenkins build based off this branch, and if successful we merge to dev. However, the way it's currently setup is that either C++ or J2EE can build successfully while the other fails, and that stream will still get pushed. I.e.,:
J2EE Origin/Int -> build succeeds -> merge to Origin/dev
C++ Origin/Int -> build fails -> don't merge to Origin/dev
Developers then rebase both streams, only now the C++ stream is out of date.