`Cannot run program "nohup" (in directory ...): error=2, No such file or directory` on a Windows agent.
IntermediateTroubleshootingJenkins Build and Agent Failures
Answer
Likely causes → The pipeline uses sh on a Windows node, which has no POSIX shell.
Diagnose → Check the node OS label and which step is used.
Fix → Use bat or powershell on Windows, or choose by isUnix(); install Git Bash only if truly necessary.
Prevent → Label nodes by OS and select agents with label 'linux' for shell steps.
More on Jenkins Build and Agent Failures
Jenkins console shows `sh: 1: mvn: not found` on one agent only.Beginner`java.lang.NoSuchMethodError: No such DSL method 'xyz' found among steps`.Beginner`WorkflowScript: 12: Expected a step @ line 12, column 5.` in a Declarative pipeline.Beginner`hudson.AbortException: script returned exit code 1` with nothing useful above it.BeginnerBuild hangs at "Waiting for next available executor" even though agents look idle.BeginnerBuild fails with `java.io.NotSerializableException: java.util.regex.Matcher`.Advanced