It's not clear for me if Java System Properties are case sensitive. Strings are, and for environment variables it depends of the operating system. As it is clearly documented as `java.io.tmpdir`, and I don't want to take any risk, I pushed the change to our team and the article should be updated soon.
I am facing the issue while trying to run the GitHub repository from Jenkins using webhook. Any help will be appreciable. Error is mentioned below
FATAL: Could not checkout 23f50ab88eb784981883be5e59dec11b1d0de521
hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe checkout -f 23f50ab88eb784981883be5e59dec11b1d0de521" returned status code 128:
stdout:
stderr: error: invalid path 'user/ Postman_Int_Github/postman_collection.json'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$1100(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2767)
Caused: hudson.plugins.git.GitException: Could not checkout 23f50ab88eb784981883be5e59dec11b1d0de521
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2791)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1301)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1894)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)
Finished: FAILURE
Comments
3 comments
Small typo in this helpful article:
-Djava.io.tmpDir should be -Djava.io.tmpdir
Hi Tero,
It's not clear for me if Java System Properties are case sensitive. Strings are, and for environment variables it depends of the operating system. As it is clearly documented as `java.io.tmpdir`, and I don't want to take any risk, I pushed the change to our team and the article should be updated soon.
Thanks for your help
Best regards
Hi,
I am facing the issue while trying to run the GitHub repository from Jenkins using webhook. Any help will be appreciable. Error is mentioned below
Please sign in to leave a comment.