Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-07-01 Thread KP
Great. Thank you and Philipp for your fast and helpful replies. On Friday, July 1, 2016 at 1:16:48 PM UTC-4, Antonio Muñiz wrote: > > > On Fri, Jul 1, 2016 at 5:08 PM, KP > > wrote: > >> Or extend "checkout scm" so that I can use a subdirectory? > > > Try this: > > dir('a_subdirectoty') { > c

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-07-01 Thread Antonio Muñiz
On Fri, Jul 1, 2016 at 5:08 PM, KP wrote: > Or extend "checkout scm" so that I can use a subdirectory? Try this: dir('a_subdirectoty') { checkout scm } -- Antonio Muñiz Software Engineer CloudBees, Inc. -- You received this message because you are subscribed to the Google Groups "Jen

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-07-01 Thread Philipp Meier
You can get the values from the global SCM variable i.e.: checkout([ $class : 'GitSCM', branches : [[$class: 'BranchSpec', name: git_reference]], doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-07-01 Thread KP
I am also interested in this, but for a slightly different reason. I want to checkout into a sub-directory using git. I know that I can do that by using syntax like: checkout([$class: 'GitSCM', branches: [[name: '**']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'Relative

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-05-31 Thread Greg Smith
Thank you -- This is exactly what I was looking for. Now that I have it, and was able to search the docs for it, I don't know how I missed it Thanks, Greg On Tuesday, May 31, 2016 at 11:54:25 AM UTC-4, Antonio Muñiz wrote: > > You can use `checkout scm` which will clone the repository at

Re: Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-05-31 Thread Antonio Muñiz
You can use `checkout scm` which will clone the repository at the same revision than the previously fetched Jenkinsfile. On Tue, May 31, 2016 at 5:00 PM, Greg Smith wrote: > > Hello, > > I have a question that is probably obvious, but I couldn't seem to find it > anywhere. Apologies for my newb

Multibranch Pipeline / Git question -- Use same information as used to retrieve Jenkinsfile

2016-05-31 Thread Greg Smith
Hello, I have a question that is probably obvious, but I couldn't seem to find it anywhere. Apologies for my newbie question: If I have a multibranch Pipeline job, does my Jenkinsfile need to do the git extract? Or should that be assumed as part of the retrieval of the Jenkinsfile? For exa

Re: Git question...

2013-01-04 Thread Mark Waite
> > From: Jeff >To: jenkinsci-users@googlegroups.com >Sent: Friday, January 4, 2013 9:53 AM >Subject: Re: Git question... > > >That was it!  Thank you!   > > >I had the auto installer running "sudo apt-get install git" on nodes la

Re: Git question...

2013-01-04 Thread Jeff
-export-ok in that >>> directory, and then create a job which uses git://yourserver/git/repo_name >>> to checkout. That idea is suggested in >>> http://stackoverflow.com/questions/12614771/configure-git-repository-in-jenkins. >>> I don't think that is likely your problem either, but trying t

Re: Git question...

2013-01-04 Thread Michaël Pailloncy
likely your problem either, but trying the fix may >> expose the real problem to you. >> >> Mark Waite >> >> >> >> -- >> *From:* Jeff >> *To:* jenkinsci-users@googlegroups.com >> *Sent:* Thursday, January 3

Re: Git question...

2013-01-03 Thread Jeff
x may > expose the real problem to you. > > Mark Waite > > > > -- > *From:* Jeff > *To:* jenkinsci-users@googlegroups.com > *Sent:* Thursday, January 3, 2013 5:22 PM > *Subject:* Re: Git question... > > I didn't even realize those op

Re: Git question...

2013-01-03 Thread Mark Waite
Waite > > From: Jeff >To: jenkinsci-users@googlegroups.com >Sent: Thursday, January 3, 2013 5:22 PM >Subject: Re: Git question... > > >I didn't even realize those options existed...ack!   > > >I checked and "Fast remote polling" i

Re: Git question...

2013-01-03 Thread Jeff
ettings for your job). I tried to duplicate the > problem myself and was unable to duplicate it, so I'm probably not using > exactly the steps you are using. > > Mark Waite > > -- > *From:* Jeff > *To:* jenkinsci-users@googlegroups.com > *

Re: Git question...

2013-01-03 Thread Mark Waite
hursday, January 3, 2013 1:35 PM >Subject: Git question... > > >I have some Git projects (internal gitolite repository) that I'm configuring >and when I put the git repo URL in, it shows this error below field: > > >Failed to connect to repository : Error performing

Git question...

2013-01-03 Thread Jeff
I have some Git projects (internal gitolite repository) that I'm configuring and when I put the git repo URL in, it shows this error below field: *Failed to connect to repository : Error performing command: ls-remote -h gitolite@mygitrepo:/myproject.git HEAD* If I login as the user that Jenkins