Re: Multibranch Pipeline git events on PR

2021-03-14 Thread Gautam, Rishi
This was finally solved by doing* unshallow clone* of git repositories. *Configure Multibranch Pipeline Job > Branch Sources > Behaviours > Add > Advanced clone behaviours > uncheck shallow clone * [image: image.png] Thank you everyone for the help. On Tue, Feb 16, 2021 at 2:26 AM Mark Waite wro

Re: Multibranch Pipeline git events on PR

2021-02-15 Thread Mark Waite
The multibranch pipeline implementation on one or more of the branch providers intentionally narrows the refspec of the repository while cloning it into the workspace. The narrowed refspec usually includes only a single branch so that git does not waste effort retrieving changes that are not relat

Re: Multibranch Pipeline git events on PR

2021-02-15 Thread Ivan Fernandez Calvo
Check if you have set git references on the job, IIRC the git plugin always make a `git fetch —all` El lunes, 15 de febrero de 2021 a las 10:49:21 UTC+1, Rishi Gautam escribió: > anyone has any idea please > > On Wed, Feb 10, 2021 at 4:16 PM Gautam, Rishi > wrote: > >> I was trying to carry ou

Re: Multibranch Pipeline git events on PR

2021-02-15 Thread 'Dirk Heinrichs' via Jenkins Users
Am Mittwoch, den 10.02.2021, 16:16 +0545 schrieb Gautam, Rishi: > I was trying to carry out git operations on any other branch than the > PR source/destination branch in a jenkins multibranch pipeline.When I > scanned the branches inside the PR build job, I didn't see any other > branches. I only

Re: Multibranch Pipeline git events on PR

2021-02-15 Thread Gautam, Rishi
anyone has any idea please On Wed, Feb 10, 2021 at 4:16 PM Gautam, Rishi wrote: > I was trying to carry out git operations on *any other branch *than the > PR source/destination branch in a jenkins multibranch pipeline. > When I scanned the branches inside the PR build job, I didn't see any > ot

Multibranch Pipeline git events on PR

2021-02-10 Thread Gautam, Rishi
I was trying to carry out git operations on *any other branch *than the PR source/destination branch in a jenkins multibranch pipeline. When I scanned the branches inside the PR build job, I didn't see any other branches. I only got below branches on* git branch -a *command on pipeline: * PR-2 r