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 <[email protected]> > 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 >> other branches. I only got below branches on* git branch -a *command on >> pipeline: >> >> * PR-2 >> remotes/origin/PR-2 >> remotes/upstream/stage >> >> >> There are other branches like test,master. Are there any workarounds to this? >> >> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/691d1a51-5ae2-4004-8e56-7c3fa3f6a17an%40googlegroups.com.
