-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
Hi!
I try to install the last version of Jenkins, first 2.8 and then 2.9 with the last version of these plugins:
- Git Plugin - 2.4.4v
- Pipeline: SCM Step - 2.1
And I encountered a problem when I try to launch a pipeline Job with access to Git repository.
When i put the repository configuration, I don' t have any problem with the connection, the credentials are ok and Jenkins doesn' t shows any error.
When i try to launch the job, jenkins shows me, the next error:
> git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@xx.xx.xx.xx:blabbla/blablabla.git # timeout=10 Fetching upstream changes from git@xx.xx.xx.xx:blabbla/blablabla.git > git --version # timeout=10 using GIT_SSH to set credentials Usuario git blablaba > git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision bc872b46805c0aefdb0cf2c22f398fa43c036388 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f bc872b46805c0aefdb0cf2c22f398fa43c036388 > git rev-list bc872b46805c0aefdb0cf2c22f398fa43c036388 # timeout=10 [Pipeline] node Running on master in /var/lib/jenkins/jobs/Hub_Build_Deploy/workspace [Pipeline] { [Pipeline] stage (Setup) Entering stage Setup Proceeding [Pipeline] git > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@xx.xx.xx.xx:blabbla/blablabla.git # timeout=10 Fetching upstream changes from git@xx.xx.xx.xx:blabbla/blablabla.git > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from git@xx.xx.xx.xx:blabbla/blablabla.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49) at hudson.security.ACL.impersonate(ACL.java:213) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress git@xx.xx.xx.xx:blabbla/blablabla.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808) ... 13 more [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: null Finished: FAILURE
The OS version : RHEL 7.2
I can replicate the same error in a different Jenkins with the same version, but the OS version is Ubuntu 14.04.4 LTS.
In a Jenkins 2.0v with:
- Git Plugin - 2.4.4v
- Pipeline: SCM Step - 2.0v
the same pipeline job, works fine.
Thanks for your help.
pd: Sorry for my bad english