Interview Prep/Jenkins/Plugins, JCasC & Kubernetes agents

`process apparently never started in /home/jenkins/agent/workspace/shack-app_main@tmp/durable-3f2a1b9c`

AdvancedTroubleshootingPlugins, JCasC & Kubernetes agents
Answer

Likely causes → In a container() step, the tool container runs as a different UID than jnlp and cannot write to the @tmp control directory; the image has no /bin/sh or nohup; or the workspace path differs (workingDir mismatch).

Diagnose → Enable launch diagnostics for one run: -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true on the controller; check id in both containers.

Fix → Run containers with the same UID (pod securityContext.runAsUser: 1000 and fsGroup: 1000), use images with a shell (:debug variants), keep the default working directory /home/jenkins/agent.

Prevent → Base pod template with a consistent security context.

All Jenkins questions Roadmap: Jenkins

More on Plugins, JCasC & Kubernetes agents