In a multibranch project you simply do: checkout scm And that clones/checks out the current branch.
Cheers, Daniel Butler From: R Srinivasan Sent: 01 July 2017 12:45 To: Jenkins Users Subject: finding git repo url For Multibranch pipeline jobs, how do I clone the git Repo? I can find what the branch is but not the git url! Environment variable GIT_URL does not appear to be populated. Can someone please suggest a way? thanks, srini -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5cea8c76-d2f2-4fe8-8f35-5307ab298604%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5957a618.c288df0a.f9b2b.28e7%40mx.google.com. For more options, visit https://groups.google.com/d/optout.