janinko / ghprb

github pull requests builder plugin for Jenkins
https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin
MIT License
370 stars 20 forks source link

Requirement for not pulling Master branch in Jenkins work space #493

Open appala1987 opened 4 years ago

appala1987 commented 4 years ago

Hi Team,

I am developing a new project where in my requirement i have to create separate branches for each project we work on , I am achieving this using Jenkins pipeline scripts. But during the implementation if i create a branch b1 with abc.txt file and push the changes to branch b1 and merge them with master . in next project if i am creating the branch b2 by default Jenkins is pulling the files that are already present in master and then appending the new files and committing the full data to b2 and as well as master. But i dint want b2 branch to be committed with the master data. i just want b2 branch data should be different and master should have b1 and b2 . how can we achieve these . can some let me know what commands do i need to use to achieve the same .