Skip to main content

Jenkins with Git Client needs permission on Temporary directory

Comments

3 comments

  • Tero Pikala

    Small typo in this helpful article:

    -Djava.io.tmpDir  should be -Djava.io.tmpdir

    0
  • Arnaud Héritier

    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

    0
  • Test Booking

    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

     

    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
    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.