0
votes

I am using bitbucket and jenkins to auto build and deploy apps.

I have created a new repo that's forked from the original repo and did some changed to it. once I committed and ran the jenkins pipeline that points to the forked repo, it seems to fetch code from both the original repo and the forked one and thus fails the build as in the original repo, the version code is 1 and in the new forked repo, the version code is 2 and when deploying the app, it fails because it thinks I am deploying version 1 instead of version 2(as version 1 already exists).

How do I configure the jenkins multi branch pipeline to just build and deploy the forked repo and not the original repo?