Re: finding git repo url

2017-07-01 Thread R Srinivasan
thanks a bunch. will try all suggestions.

On Sat, Jul 1, 2017 at 9:39 AM, Daniel Butler 
wrote:

> 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
> <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 a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/zhvWR3GT7rk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAGNn0haNpWtgSi1LX%2BycZXNm5oPHA8zhYup7UeCpgnH46c5gdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: finding git repo url

2017-07-01 Thread Mark Waite
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 
wrote:

> 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
> <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.


RE: finding git repo url

2017-07-01 Thread Daniel Butler
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.


finding git repo url

2017-07-01 Thread R Srinivasan
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.