Due to constraints of Jenkins, we need to maintain multiple branches (with different branch names), across our repository.
- development
- main
- bvt
- unit-tests
All of these should contain the same code, but as we are using Jenkinsfile to run the various specific (tag based) tests in each branch, we need to maintain the branches with these specific names for Jenkins to pick up and run the tests.
Is there any way, where-in I can script something so when I do a commit in 'development', the same code is replicated to the other branches also? The only other option I have is to merge/diff the code branches (after checking them out individually) and then updating the code and pushing it every time I make a commit.