You use the Jenkins credentials system to register a credential with the
user name and private key file, then reference that credential from the job
definition.

Credentials are defined through "Jenkins" -> "Credentials".  You can then
choose to create credentials which are accessible to all jobs, or
credentials which are only accessible to jobs whose SCM is using a specific
SCM URL (like git://github.com <https://github.com> or [email protected]
<https://gitbucket.org> or https://gitlab.com/ or https://assembla.com/ ),
or a specific SCM protocol (like https or ssh or git).

Refer to https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Plugin for
more information on credentials.

Mark Waite

On Mon, Feb 8, 2016 at 10:42 AM Paulo Moreira <[email protected]> wrote:

> Hi Mark,
>
> Thank you for the anwser.
>
> Ok so I installed git with default openssh but now I get:
>
> status code 128:
> stdout:
> stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
> fatal: Could not read from remote repository.
> How can I add my keys for auto git clone without plink.exe?
>
> Thanks
>
>
>
>
> sábado, 6 de Fevereiro de 2016 às 23:12:55 UTC, Mark Waite escreveu:
>
>> The error message hints that you have chosen to install git for Windows
>> to use plink rather than the default openssh authentication system.  The
>> simplest solution is probably to reconfigure your git for Windows to use
>> openssh rather than plink.
>>
>> If you must use plink, you may find helpful instructions on the wiki page
>> of the git plugin.
>>
>> Mark Waite
>>
>> On Sat, Feb 6, 2016, 4:08 PM Paulo Moreira <[email protected]> wrote:
>>
>
>>> Paulo Moreira
>>> to mark.earl.waite, nicolas.deloof
>>> 1 day agoDetails
>>> Dear Jenkins Masters,
>>>
>>> Sorry to bother you but I am strugguling to get the git plugin working
>>> under my environment.
>>>
>>> Can you please help?
>>> I am working on this issue for some days now :(
>>>
>>> Here is my setting:
>>>
>>> Master:
>>> Jenkins Master under Linux CentOS
>>>    - git clone by shell --> Ok
>>>    - git plugin --> Ok
>>>
>>> Node:
>>> Under Windows 7
>>>    - git clone by shell --> Ok
>>>    - git plugin --> NOK  (and here is my problem)
>>>
>>>
>>> Cloning repository ssh://[email protected]
>>>  > git init D:\workspace\test_git_newgitlab_win # timeout=10
>>> Fetching upstream changes from ssh://[email protected]
>>>  > git --version # timeout=10
>>> using GIT_SSH to set credentials
>>>  > git -c core.askpass=true fetch --tags --progress
>>> ssh://[email protected] +refs/heads/*:refs/remotes/origin/*
>>> ERROR: Error cloning remote repo 'origin'
>>> hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch
>>> --tags --progress ssh://[email protected]
>>> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
>>> stdout:
>>> stderr: plink: unknown option "-o"
>>> plink: unknown option "-p"
>>> fatal: Could not read from remote repository.
>>>
>>> GIT_HOME=D:\Programs\Git\cmd
>>> HOME=C:\Users\paulomoreira
>>>
>>> PATH=D:\Programs\TortoiseSVN\bin;D:\Programs\PuTTY;D:\Programs\PuTTY;D:\Programs\TortoiseGit\bin;D:\Programs\Git\cmd;D:\Programs\Git\bin
>>>
>>> Jenkins:V 1.639
>>> Git Client plugin: 1.19.2
>>> Git plugin: 2.4.2
>>>
>>>
>>> I have run out off solutions :(
>>>
>>> --
>>> 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 [email protected].
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/2d903c70-08ff-4cd3-81a4-4bcdf446cd27%40googlegroups.com
>>> .
>>> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/4aeb0cdc-e9f4-4d2b-800b-cb12651288ba%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/4aeb0cdc-e9f4-4d2b-800b-cb12651288ba%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEoU0eZ0stNAA5XxsLdDutE5D9OcDNcVsYRHNuAVoPxBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to