Using Jenkins 2.138.3 and Git client plugin 2.7.4 I get an error when doing the following:
Started by user unknown or anonymous
Checking out git ssh://
g...@bitbucket.foo.com:7999/~userXXX/jmt_poc.git into /var/lib/jenkins/workspace/POC_JMT_PIPELINE_FROM_GIT2@script to read Jenkinsfile
Cloning the remote Git repository
Cloning repository ssh://
g...@bitbucket.foo.com:7999/~userXXX/jmt_poc.git> git init /var/lib/jenkins/workspace/POC_JMT_PIPELINE_FROM_GIT2@script # timeout=10
Fetching upstream changes from ssh://
g...@bitbucket.foo.com:7999/~userXXX/jmt_poc.git> git --version # timeout=10
using GIT_SSH to set credentials
> git fetch --tags --progress ssh://
g...@bitbucket.foo.com:7999/~userXXX/jmt_poc.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://
g...@bitbucket.foo.com:7999/~userXXX/jmt_poc.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: cannot exec '/var/lib/jenkins/workspace/POC_JMT_PIPELINE_FROM_GIT2@script@tmp/ssh7220368723599186680.sh': Permission denied
fatal: unable to fork
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:420)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:629)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1146)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:292)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: Error cloning remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting
Finished: FAILURE
If I create a project from content of Jenkinsfile directly , which checkouts exactly the same repository , it works fine but node is on redhat 6.4.
I adjusted Xmx, Xms and MaxMetaSpaceSize.
It happens even after a clean restart of Jenkins and there is no job running.
Thanks in advance for your help.
Philippe M.