Declarative pipeline is even easier than that.  It performs the checkout
scm implicitly.  Try declarative pipeline.

On Sat, Jul 1, 2017 at 7:39 AM Daniel Butler <danielsimonbut...@gmail.com>
wrote:

> In a multibranch project you simply do:
> checkout scm
>
> And that clones/checks out the current branch.
>
>
>
> Cheers,
>
> Daniel Butler
>
>
>
> *From: *R Srinivasan <s...@srin.me>
> *Sent: *01 July 2017 12:45
> *To: *Jenkins Users <jenkinsci-users@googlegroups.com>
> *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
> <https://groups.google.com/d/msgid/jenkinsci-users/5cea8c76-d2f2-4fe8-8f35-5307ab298604%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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
> <https://groups.google.com/d/msgid/jenkinsci-users/5957a618.c288df0a.f9b2b.28e7%40mx.google.com?utm_medium=email&utm_source=footer>
> .
> 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/CAO49JtFm2nWgxzh2qzEHNJH8zpwxqQB-R9z5WuR6GT9JzH%3DSGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to