I want to automate a build where before creating the build i have to pull from master and then I have to build the package. But I want to have a check point to see if there is any conflict before pulling from master so that I can make the build to fail.
Can anyone please advise how to do it in gitscm for jenkins(or git also fine). I am not able to find a proper solution, maybe my understanding is not clear since i am not having development background.
Thanks in advance.