Mr. Waite,

Thanks for your reply.

So maybe I didn't type clearly.  I apologize.  What I was trying to say was 
on the Jenkins server with a service account

Num #1: Running the command frmo a unix terminal works
git clone https://blah.com:8443/blah.git

Num #2: In Jenkins, running it under Build>Execute Shell>Command works

Num #3: In Jenkins, under Source Code Management>Git>Repository URL = 
https://blah.com:8443/blah.git doesn't work

Num #4: In Jenkins under my home account for debugging purposes, Source 
Code Management>Git>Repository URL = ssh://fn...@blah.com:8443/blah.git 
 does work.

I think it might be a plugin issue, as found by this 
poster: 
http://stackoverflow.com/questions/19561570/jenkins-git-plugin-with-https. 
 thx for your reply and trying to help me.

On Thursday, October 31, 2013 3:33:31 PM UTC-7, Mark Waite wrote:
>
> You mentioned that the https clone works "provided, I have my public keys 
> in place".  Then later you mentioned that you want it to work without 
> requiring a public key.  I think the problem is with your server 
> configuration, rather than with Jenkins.  If I'm right, there are several 
> ways you could change your server configuration.
>
> You might consider using git protocol rather than https protocol, since it 
> performs no authentication and no SSL encryption.
>
> If you can't configure to use the git protocol rather than https, then you 
> should probably test a clone from an account which does not have your 
> public keys in place.  That will allow you to see what Jenkins sees, and 
> perform experiments until the https server configuration does not require 
> public keys be in place.
>
> Another alternative is to use the Jenkins Credentials feature to add your 
> private key to the Jenkins instance so that the keys are available to the 
> Jenkins process the same as they are available to your user process.
>
> Thanks,
> Mark Waite
>
>
> On Thu, Oct 31, 2013 at 2:44 PM, <slouie....@gmail.com <javascript:>>wrote:
>
>> Thanks for the reply.  Yeah, I don't want to use ssh.  I want to use 
>> https.  
>>
>>
>> On Thursday, October 31, 2013 1:24:40 PM UTC-7, Maneesh M P wrote:
>>>
>>> if you want to use git clone over ssh, keep your key at 
>>> /var/lib/jenkins/.ssh  then git clone will work just like how it works in 
>>> your command line.
>>>
>>> Thanks,
>>> Maneesh
>>>
>>> On Thursday, October 31, 2013 1:15:12 PM UTC-7, slouie....@gmail.comwrote:
>>>>
>>>> If I can add, in my initial post, I was running Jenkins as a service 
>>>> account user (we'll call jenkins).
>>>>
>>>> I also installed a local Jenkins just to debug.  If I ran Jenkins as 
>>>> myself and for the repository URL, i typed ssh://first.l...@blah.com:**
>>>> 8443/blah.git <http://first.l...@blah.com:8443/blah.git>, this worked 
>>>> fine so I'm not sure what's wrong with my git or Jenkins config.  Running 
>>>> git frmo command line works for both ssh and https.  Jenkins works for ssh 
>>>> when Jenkins is run as myself.  Jenkins doesn't work on ssh and https when 
>>>> it's not run by me.
>>>>
>>>>
>>>> On Thursday, October 31, 2013 1:07:37 PM UTC-7, slouie....@gmail.comwrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm a noob to Jenkins so please forgive me if this is a dumb question. 
>>>>>  I'm trying to use Jenkins to pull down our code from git to make a build.
>>>>> Someone told me to use anonymous read-only access via https in Jenkins 
>>>>> so we can pull down our code w/o public keys or what not.
>>>>> In my project, I click on "Configure".  Under Source Code 
>>>>> Management>Git>Repository URL, I type in our repo url.
>>>>>
>>>>> https://blah.com:8443/blah.git
>>>>>
>>>>> Jenkins returns this message below.
>>>>> Failed to connect to repository : Failed to connect to 
>>>>> https://blah.com:8443/blah.git
>>>>>
>>>>> The funny thing is when I'm on the command line, I can type this and 
>>>>> git works fine:
>>>>>
>>>>> git clone https://blah.com:8443/blah.git
>>>>>
>>>>> I also tried this on the cmd line too, which also worked, provided, I 
>>>>> have my public keys in place.
>>>>> git clone 
>>>>> ssh://first.l...@blah.com:**8443/blah.git<http://first.l...@blah.com:8443/blah.git>
>>>>>
>>>>> What do I need to do in Jenkins so that it pulls my code down w/o 
>>>>> problems, just like the command line examples?  Do I need to do something 
>>>>> on the git repo to get this to work with Jenkins?
>>>>>
>>>>> Thanks in advance for your help.
>>>>>
>>>>  -- 
>> 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-use...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to