title: Jenkins permission error after changing workspace folder
body: <p>I am trying to set up a CI using Jenkins in my project</p>
  
  <h2>Steps done</h2>
  
  <p>1)Changed the workspace directory to a custom folder <code>/var/jenkins-test/${ITEM_FULLNAME}</code></p>
  
  <p>2)Proper repo URL in the source code management</p>
  
  <p>But I am getting the following error after Jenkins build</p>
  
  <pre><code>java.io.IOException: Failed to mkdirs: /var/jenkins-test/node-express
      at hudson.FilePath.mkdirs(FilePath.java:1170)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1200)
      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:1724)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:421)
  Finished: FAILURE
  </code></pre>