Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: kubernetes-plugin
-
Labels:None
-
Similar Issues:
Description
The current default /home/jenkins causes some issues in some scenarios:
When building a docker image with kaniko that is actually a jnlp agent image, since the specified workingDir is mounted as a volume in all containers in the pod, and it is also the home directory for the jenkins user, it prevents adding any file to /home/jenkins in the docker image.
Changing the default working directory to /home/jenkins/agent should not have any downside except for users hardcoding stuff to it, while allowing this kind of scenarios in an easier way.
Attachments
Issue Links
- causes
-
JENKINS-60977 Setting working directory to '/home/jenkins' does not persist
-
- Reopened
-
-
JENKINS-58766 kubernetes-plugin access denied after update to 1.18.0
-
- Closed
-
- links to
How did you solved that error ?
Error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "chdir to cwd (\"/home/jenkins/workspace/MCO_3.0/custom_test\") set in config.json failed: permission denied": unknown.