Marc Harter commented on Bug JENKINS-21016

I tried that hpi but didn't work for me, I'm getting this error in Configuration -> Source Code Management -> Git -> Repository Url with Credentials:

Failed to connect to repository : Command "git config --local credential.helper store --file=\"/tmp/git3351626511932244072.credentials\"" returned status code 255:
stdout:
stderr: error: could not lock config file .git/config: No such file or directory

I also get this error when attempting to build (actual repo is masked):

Started by user Marc Harter
Building in workspace /var/lib/jenkins/jobs/REDI Comps/workspace
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository https://github.com/my-company/my-project.git
Fetching upstream changes from https://github.com/my-company/my-project.git
using .gitcredentials to set credentials
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://github.com/my-company/my-project.git +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout:
stderr: error: cannot run /bin/echo : No such file or directory
fatal: could not read Username for 'https://github.com': No such device or address

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1103)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:985)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:69)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:218)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:350)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:828)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
at hudson.model.Run.execute(Run.java:1678)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
ERROR: null

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to