Thanks Mr. Silva, I'm using Jenkins 1.535, git plugin 1.5.0 git client plugin 1.4.5.
I upgraded to git plugin 2.0 and git client plugin 1.4.6 to see if there were bug fixes but it's now giving me a NoClassDefFoundError. grrr. I thought about downgrading to see but since this is a recent install of Jenkins, it doesn't seem like it's letting me go lower than git 1.5.0 or git client 1.4.5. I think I found something on StackOverflow. Someone thinks there's something up with the plugin (http://stackoverflow.com/questions/19561570/jenkins-git-plugin-with-https), which I agree. I can run git clone https://blah.com:8443/blah.git from the Jenkins job under: Build>Execute shell I can also run it from a unix terminal. I just can't use this under Source Code Management>Git>Repository URL. I'll look on the bug repo to see if someone has filed this yet. On Thursday, October 31, 2013 11:36:48 PM UTC-7, Ricardo Silva wrote: > > Also, unless you really need any missing features it might be wiser to > go with the LTS releases [1] as you'll for sure bump into less issues. > I've been bitten several times in the past few weeks by issues with > upgrades in the weekly releases of both Jenkins and plugins. > > [1] https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line > > > On 11/01/2013 07:33 AM, Ricardo Silva wrote: > > Hi, > > > > Which versions of jenkins, git and git client plugin are you using? > > > > There have been some problems reported with the latest versions of git > > and git client. Try downgrading git plugin to 1.5.0 and git client to > > 1.4.0. > > > > That's what worked for me, but I was looking for a combination of https > > access, and gerrit integration working. Maybe downgrading only the git > > plugin is enough, maybe not. > > > > Cheers, > > Ricardo > > > > On 10/31/2013 09: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, 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 > >>>>> > >>>>> 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. > >>>>> > >>>> > >> > > > > -- > Ricardo > -- 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.