Hi All,

I managed to implement the build infrastructure using Jenkin multibranch 
and simple pipelines. Today I suddenly started getting errors for all the 
jobs involving pipelines - simple pipeline jobs or jobs created via 
multibranch plugin. The errors happen on Jenkins server before any of the 
pipeline code gets chance to be executed. I cleared up the workspace from 
Jenkins server, job logs - nothing helped.
If I clone the failing job using a different job name, or if I delete the 
failing job and create a new one from scratch with the same name and 
settings - the new job still fails.
If I create a brand new job with a new name and the same settings - the job 
starts working. This means that the access to git via ssh works, and it 
leads me to thinking about some bugs on the server side.

Do you have any ideas why is this error happening and how can I fix it?
The build log is below.

Thank you,
Ion.

Started by user anonymous 
<https://sparkler-test-win10.ci.corp.adobe.com:12001/user/null>
Connecting to https://git.corp.rosca.com/api/v3/ 
<https://git.corp.adobe.com/api/v3/> using *****/******
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from 2 remote Git repositories
 > git config remote.origin.url git@git.*****.com:Org/project.git # timeout=10
Fetching upstream changes from [email protected]:Org/project.git
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git -c core.askpass=true fetch --tags --progress 
 > [email protected]:Org/project.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Failed to fetch from [email protected]:Org/project.git
        at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:792) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
        at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1048) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method>
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1079) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
        at 
org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout&entity=method>
        at 
org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create&entity=method>
        at 
org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:85) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create&entity=method>
        at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.workflow.job.WorkflowRun.run&entity=method>
        at hudson.model.ResourceController.execute(ResourceController.java:98) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
        at hudson.model.Executor.run(Executor.java:410) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Command "git -c core.askpass=true fetch --tags --progress 
[email protected]:Org/project.git +refs/heads/*:refs/remotes/origin/*" 
returned status code 128:
stdout: 
stderr: /apps/instances/jenkins_12000/temp/ssh2144286552649045768.sh: line 6: 
ssh: command not found
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:790)
        ... 8 more

GitHub has been notified of this commit’s build result

ERROR: null
Finished <http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE



-- 
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/6e4bcc6e-9060-48ac-9855-3203865b3252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to