Changing Jenkins home directory broke a repo connection?

Viewed 10

I moved my Jenkins home directory from C: to D:. I updated this change for JENKINS_HOME in jenkins.xml as advised by jenkinsurl:port/configure.

Then I restarted Jenkins with java -jar jenkins-cli.jar -s URL -auth : restart

Once restarted, Jenkins correctly reflected the new home directory to be the D: drive and I ran a test which worked. Proving the home directory was successfully changed.

However, one of my tests broke. Seems to be an error with repo connection. Was this correlated to updating my home directory?

14:57:16 ERROR: Error fetching remote repo 'origin'
14:57:16 hudson.plugins.git.GitException: Failed to fetch from git@ssh.dev.azure.com:URL
14:57:16    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1000)
14:57:16    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1241)
14:57:16    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1301)
14:57:16    at hudson.scm.SCM.checkout(SCM.java:505)
14:57:16    at hudson.model.AbstractProject.checkout(AbstractProject.java:1211)
14:57:16    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:636)
14:57:16    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
14:57:16    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:508)
14:57:16    at hudson.model.Run.execute(Run.java:1906)
14:57:16    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
14:57:16    at hudson.model.ResourceController.execute(ResourceController.java:97)
14:57:16    at hudson.model.Executor.run(Executor.java:429)
14:57:16 Caused by: hudson.plugins.git.GitException: Command "C:/Program Files/Git/mingw64/bin/git.exe config remote.origin.url git@ssh.dev.azure.com:URL" returned status code 128:
14:57:16 stdout: 
14:57:16 stderr: fatal: not in a git directory
14:57:16 
14:57:16    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2677)
14:57:16    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2607)
14:57:16    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2603)
14:57:16    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1974)
14:57:16    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1986)
14:57:16    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.setRemoteUrl(CliGitAPIImpl.java:1600)
14:57:16    at hudson.plugins.git.GitAPI.setRemoteUrl(GitAPI.java:161)
14:57:16    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:988)
14:57:16    ... 11 more
14:57:16 ERROR: Error fetching remote repo 'origin'
0 Answers
Related