Re: Git plugin unable to acces local repository
I added credentials using the "Add" button ; they showed up in the selection box; I selected them. I would think that is enough. Is it? On Friday, October 2, 2015 at 6:12:40 PM UTC+2, milki milk wrote: > > Did you set the credentials to be used the scm section? You need to both > define the credentials _and_ use the credentials. > > On Thursday, October 1, 2015 at 1:38:38 PM UTC-7, Henk van Voorthuijsen > wrote: >> >> I did - there is a credential for user "git" in the global credentials. >> > -- 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/67c9d413-a97e-4301-a3f4-6a54805c6609%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Git plugin unable to acces local repository
OK, I set the service's WorkingDirectory to $JENKINS_HOME - unfortunately that doesn't help - I'm still getting the same error On Thursday, October 1, 2015 at 10:38:38 PM UTC+2, Henk van Voorthuijsen wrote: > > I did - there is a credential for user "git" in the global credentials. > But I noticed that $PWD is set to "/" - which is probably not what I > want... I'll investigate further.. > > On Thursday, October 1, 2015 at 7:35:59 PM UTC+2, Mark Waite wrote: >> >> Did you define a credential and reference that credential when you >> defined the git settings in the job definition? The run time environment >> may be different between your logging in as the jenkins user with an >> interactive shell and your running jenkins as a CentOS 7 service. >> >> Mark Waite >> >> On Thu, Oct 1, 2015 at 10:11 AM Henk van Voorthuijsen >> wrote: >> >>> Hi, >>> >>> I'm having trouble getting access to a local git repository: >>> >>> System: CentOS 7 >>> >>> I'm running Jenkins as a service using system >>> >>> When I try to set up a job with Git, the URL field shows the following >>> error: >>> >>> >>> Failed to connect to repository : Command "git -c core.askpass=true >>> ls-remote -h git@localhost:repositories/puq HEAD" returned status code 128: >>> stdout: >>> stderr: Permission denied, please try again. >>> Permission denied, please try again. >>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). >>> fatal: Could not read from remote repository. >>> >>> Please make sure you have the correct access rights >>> and the repository exists. >>> >>> >>> In order to test what is happening, I run the following script: >>> >>> whoami >>> echo $USER >>> cd /tmp >>> rm -rf test >>> mkdir test >>> cd test >>> git clone git@localhost:repositories/puq >>> >>> >>> Which gives the following output: >>> >>> + whoami >>> >>> jenkins >>> >>> + echo jenkins >>> >>> jenkins >>> >>> + cd /tmp >>> >>> + rm -rf test >>> >>> + mkdir test >>> >>> + cd test >>> >>> + git clone git@localhost:repositories/puq >>> >>> Cloning into 'puq'... >>> >>> Permission denied, please try again. >>> >>> Permission denied, please try again. >>> >>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). >>> >>> fatal: Could not read from remote repository. >>> >>> Please make sure you have the correct access rights >>> >>> and the repository exists. >>> >>> >>> So, basically the same error. >>> >>> When I run the same clone command from the command line (logged in as >>> jenkins), however, the clone succeeds... >>> >>> I have the feeling I'm missing something obvious - can anyone tell me >>> what's going on? >>> >>> Henk van Voorthuijsen >>> >>> -- >>> 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. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/4e09f72f-f23b-4eeb-8eb7-4779df08cee1%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/4e09f72f-f23b-4eeb-8eb7-4779df08cee1%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/95d874da-7168-4520-907e-d8119d93a161%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Git plugin unable to acces local repository
I did - there is a credential for user "git" in the global credentials. But I noticed that $PWD is set to "/" - which is probably not what I want... I'll investigate further.. On Thursday, October 1, 2015 at 7:35:59 PM UTC+2, Mark Waite wrote: > > Did you define a credential and reference that credential when you defined > the git settings in the job definition? The run time environment may be > different between your logging in as the jenkins user with an interactive > shell and your running jenkins as a CentOS 7 service. > > Mark Waite > > On Thu, Oct 1, 2015 at 10:11 AM Henk van Voorthuijsen > wrote: > >> Hi, >> >> I'm having trouble getting access to a local git repository: >> >> System: CentOS 7 >> >> I'm running Jenkins as a service using system >> >> When I try to set up a job with Git, the URL field shows the following >> error: >> >> >> Failed to connect to repository : Command "git -c core.askpass=true >> ls-remote -h git@localhost:repositories/puq HEAD" returned status code 128: >> stdout: >> stderr: Permission denied, please try again. >> Permission denied, please try again. >> Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). >> fatal: Could not read from remote repository. >> >> Please make sure you have the correct access rights >> and the repository exists. >> >> >> In order to test what is happening, I run the following script: >> >> whoami >> echo $USER >> cd /tmp >> rm -rf test >> mkdir test >> cd test >> git clone git@localhost:repositories/puq >> >> >> Which gives the following output: >> >> + whoami >> >> jenkins >> >> + echo jenkins >> >> jenkins >> >> + cd /tmp >> >> + rm -rf test >> >> + mkdir test >> >> + cd test >> >> + git clone git@localhost:repositories/puq >> >> Cloning into 'puq'... >> >> Permission denied, please try again. >> >> Permission denied, please try again. >> >> Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). >> >> fatal: Could not read from remote repository. >> >> Please make sure you have the correct access rights >> >> and the repository exists. >> >> >> So, basically the same error. >> >> When I run the same clone command from the command line (logged in as >> jenkins), however, the clone succeeds... >> >> I have the feeling I'm missing something obvious - can anyone tell me >> what's going on? >> >> Henk van Voorthuijsen >> >> -- >> 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 . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/4e09f72f-f23b-4eeb-8eb7-4779df08cee1%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/4e09f72f-f23b-4eeb-8eb7-4779df08cee1%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/0ba2168d-1b16-4f9c-bf7f-294aa782beea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Git plugin unable to acces local repository
Hi, I'm having trouble getting access to a local git repository: System: CentOS 7 I'm running Jenkins as a service using system When I try to set up a job with Git, the URL field shows the following error: Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h git@localhost:repositories/puq HEAD" returned status code 128: stdout: stderr: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. In order to test what is happening, I run the following script: whoami echo $USER cd /tmp rm -rf test mkdir test cd test git clone git@localhost:repositories/puq Which gives the following output: + whoami jenkins + echo jenkins jenkins + cd /tmp + rm -rf test + mkdir test + cd test + git clone git@localhost:repositories/puq Cloning into 'puq'... Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. So, basically the same error. When I run the same clone command from the command line (logged in as jenkins), however, the clone succeeds... I have the feeling I'm missing something obvious - can anyone tell me what's going on? Henk van Voorthuijsen -- 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/4e09f72f-f23b-4eeb-8eb7-4779df08cee1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins 1.607 - Environment Variables Stuck
Varun, Have you tried setting the variable with SETX instead of SET ? Henk -- 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/b25dc8ce-7f06-4012-8d18-18de5cd645b7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Triggering build twice for each commit
Have you checked if the clocks on master and slave are in sync? On Jul 6, 2012, at 9:30 AM, Varghese Renny wrote: > > I have commited to repo and it is triggering build twice. My build is going > on slave machine.. > First build will say like no changes > Second build is detecting the changes. > > How to solve this problem? >