Re: GitHub Clone to Different Local Directory

2021-03-31 Thread 'Dirk Heinrichs' via Jenkins Users
Am Mittwoch, den 31.03.2021, 08:17 -0600 schrieb Eric Fetzer: > Hi Dirk, sorry I didn't respond earlier, but I did try these things. > They just didn't work. Questioning whether I didn't run into a > firewall rule. Even though they allow us to add an SSH Key in > GitHub, that doesn't mean they'

Re: GitHub Clone to Different Local Directory

2021-03-31 Thread Eric Fetzer
Hi Dirk, sorry I didn't respond earlier, but I did try these things. They just didn't work. Questioning whether I didn't run into a firewall rule. Even though they allow us to add an SSH Key in GitHub, that doesn't mean they've opened port 22 on the server. When I try to ssh g...@github.com, it

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, den 29.03.2021, 12:26 -0700 schrieb eric@gmail.com: > The only thing I can guess is that ssh is getting a question when he > attempts to connect wanting to be added to the known_hosts file. > Wondering if maybe there's a way to establish this if this is indeed > the issue? Yes, of

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread Eric Fetzer
ff.com/> >> >> *dimonoff.com* <https://www.dimonoff.com/> >> >> 1015 Avenue Wilfrid-Pelletier, >> >> Québec, QC G1W 0C4, 4e étage >> >> >> >> >> >> *From: *jenkinsci-users@googlegroups.com < >> jenkinsc

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread Eric Fetzer
t; > [image: signature_1235056834] <https://www.dimonoff.com/> > > *dimonoff.com* <https://www.dimonoff.com/> > > 1015 Avenue Wilfrid-Pelletier, > > Québec, QC G1W 0C4, 4e étage > > > > > > *From: *jenkinsci-users@googlegroups.com > on behalf of

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread Jérôme Godbout
, March 30, 2021 at 1:18 PM To: jenkinsci-users@googlegroups.com Subject: Re: GitHub Clone to Different Local Directory For this one I get "Host 'myDomain' not found in .ssh/known_hosts". Not sure what I should be using for domain. Seems it should be github.com<http://github.com

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread Eric Fetzer
t; > > > > *From: *jenkinsci-users@googlegroups.com > on behalf of Eric Fetzer > *Date: *Tuesday, March 30, 2021 at 10:15 AM > *To: *jenkinsci-users@googlegroups.com > *Subject: *Re: GitHub Clone to Different Local Directory > > So the url is git@a.b.c.d and I tried

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread Jérôme Godbout
/www.dimonoff.com/> 1015 Avenue Wilfrid-Pelletier, Québec, QC G1W 0C4, 4e étage From: jenkinsci-users@googlegroups.com on behalf of Eric Fetzer Date: Tuesday, March 30, 2021 at 10:15 AM To: jenkinsci-users@googlegroups.com Subject: Re: GitHub Clone to Different Local Directory So the url i

Re: GitHub Clone to Different Local Directory

2021-03-30 Thread Eric Fetzer
re_168530195] <https://www.dimonoff.com/> > > *dimonoff.com* <https://www.dimonoff.com/> > > 1015 Avenue Wilfrid-Pelletier, > > Québec, QC G1W 0C4, 4e étage > > > > > > *From: *jenkinsci-users@googlegroups.com > on behalf of eric@gmail.c

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread 'Dirk Heinrichs' via Jenkins Users
Am Dienstag, den 30.03.2021, 05:59 + schrieb 'Dirk Heinrichs' via Jenkins Users: > Am Montag, den 29.03.2021, 11:07 -0700 schrieb eric@gmail.com: > > > Please make sure you have the correct access rights > > and the repository exists. > > Oh, yes, forgot that: On the host(s) that does/do

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, den 29.03.2021, 11:07 -0700 schrieb eric@gmail.com: > Please make sure you have the correct access rights > and the repository exists. Oh, yes, forgot that: On the host(s) that does/do the cloning, you need to either * connect to g...@github.com once per SSH on the console and as

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread Jérôme Godbout
> 1015 Avenue Wilfrid-Pelletier, Québec, QC G1W 0C4, 4e étage From: jenkinsci-users@googlegroups.com on behalf of eric@gmail.com Date: Monday, March 29, 2021 at 3:27 PM To: Jenkins Users Subject: Re: GitHub Clone to Different Local Directory The only thing I can guess is that ssh is gettin

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread eric....@gmail.com
The only thing I can guess is that ssh is getting a question when he attempts to connect wanting to be added to the known_hosts file. Wondering if maybe there's a way to establish this if this is indeed the issue? On Monday, March 29, 2021 at 12:07:01 PM UTC-6 eric@gmail.com wrote: > Thank

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread eric....@gmail.com
Thanks Mark! I believe I'm one step closer but it's still not working. I'm now getting: Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git@myURLRepo:myUser/myProject.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: ssh: conn

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread Mark Waite
You can't use ssh authentication with an https repository URL. When using ssh authentication, you need to use an ssh repository URL. When using username / password or username / token, you must use an HTTPS (or HTTP) URL. Mark Waite On Mon, Mar 29, 2021 at 10:38 AM Eric Fetzer wrote: > Hmmm,

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread Eric Fetzer
Hmmm, thought that was going to work but it didn't. I followed everything to a T at: https://mohitgoyal.co/2017/02/27/configuring-ssh-authentication-between-github-and-jenkins/ The output shows: Building on master in workspace /var/lib/jenkins/workspace/Git-Checkout using credential JenkinsSSHKey

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread Eric Fetzer
O, duh, I get it now. I create the key with the jenkins user and add id_rsa.pub to the GitHub account for access. I was somehow thinking I would need a key on the GitHub side. Feeling kind of foolish now, lol. Thanks Dirk! On Mon, Mar 29, 2021 at 7:52 AM 'Dirk Heinrichs' via Jenkins Users <

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, den 29.03.2021, 07:44 -0600 schrieb Eric Fetzer: > Thanks for your reply Dirk! I'm a unix guy and that would have been > my first choice, however I don't have access to the GitHub OS, only > my particular repositories. I don't understand. Nobody has this kind of access. But everybody

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread Eric Fetzer
Thanks for your reply Dirk! I'm a unix guy and that would have been my first choice, however I don't have access to the GitHub OS, only my particular repositories. On Mon, Mar 29, 2021 at 7:40 AM 'Dirk Heinrichs' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Am Montag, den 29.03

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread 'Dirk Heinrichs' via Jenkins Users
Am Montag, den 29.03.2021, 07:22 -0600 schrieb Eric Fetzer: > It was a bit painful, but at least it gets it done. What I've > implemented is passing the workspace to the checkout, checking out as > my user to my user workspace (home directory), moving the files > checked out to the jenkins worksp

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread Eric Fetzer
am Samstag, 27. März 2021 um 04:05:44 UTC+1: >> >>> Thanks Mark, I'll check it out. Has to beat the hokey workaround I >>> worked up. :) >>> >>> >>> >>> Sent from my T-Mobile 4G LTE Device >>> >>> >>> Original message --

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread eric....@gmail.com
gt;> worked up. :) >> >> >> >> Sent from my T-Mobile 4G LTE Device >> >> >> Original message ---- >> From: Mark Waite >> Date: 3/26/21 10:49 PM (GMT-05:00) >> To: Jenkins Users >> Subject: Re: GitHub Clone

Re: GitHub Clone to Different Local Directory

2021-03-29 Thread 'Björn Pedersen' via Jenkins Users
> > > Original message > From: Mark Waite > Date: 3/26/21 10:49 PM (GMT-05:00) > To: Jenkins Users > Subject: Re: GitHub Clone to Different Local Directory > > Good point. How about the external workspace plugin from GSoC 2016? > https://plug

Re: GitHub Clone to Different Local Directory

2021-03-26 Thread eric.fetzer
Thanks Mark, I'll check it out.  Has to beat the hokey workaround I worked up.  :)Sent from my T-Mobile 4G LTE Device Original message From: Mark Waite Date: 3/26/21 10:49 PM (GMT-05:00) To: Jenkins Users Subject: Re: GitHub Clone to Different Local Directory Good

Re: GitHub Clone to Different Local Directory

2021-03-26 Thread Mark Waite
e relative paths? > > > > Sent from my T-Mobile 4G LTE Device > > > Original message > From: Mark Waite > Date: 3/26/21 6:44 PM (GMT-05:00) > To: Jenkins Users > Subject: Re: GitHub Clone to Different Local Directory > > If you're usi

Re: GitHub Clone to Different Local Directory

2021-03-26 Thread eric.fetzer
Thanks for the response Mark..  I'm using freestyle.  Doesn't checkout to a subdirectory only take relative paths?Sent from my T-Mobile 4G LTE Device Original message From: Mark Waite Date: 3/26/21 6:44 PM (GMT-05:00) To: Jenkins Users Subject: Re: GitHub Clone to

Re: GitHub Clone to Different Local Directory

2021-03-26 Thread Mark Waite
If you're using pipeline, change to that directory with the dir('/users/username/projectname') { } wrapper around the checkout step; If you're using a freestyle job, use the git plugin extension 'checkout to a subdirectory' On Fri, Mar

GitHub Clone to Different Local Directory

2021-03-26 Thread eric....@gmail.com
OK, so this is kind of complex so hang with me. We're moving from StarTeam to Github and I'm trying to reproduce what I'm doing in StarTeam with Github. StarTeam was easy because I owned the repository machine as well as administrated the tool. With Github, we're hosted. So I'm admin on the