`hudson.AbortException: script returned exit code 1` with nothing useful above it.
BeginnerTroubleshootingJenkins Build and Agent Failures
Answer
Likely causes → A shell command failed; output was hidden by returnStdout, -q flags or redirection.
Diagnose → Re-run the command locally; add set -euxo pipefail and print context before the failing command.
Fix → Start scripts with set -euxo pipefail, remove quiet flags, or capture output with returnStatus/tee into an artifact.
Prevent → Keep verbose logs in CI and move complex logic into scripts that log what they do.
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.BeginnerBuild hangs at "Waiting for next available executor" even though agents look idle.Beginner`Cannot run program "nohup" (in directory ...): error=2, No such file or directory` on a Windows agent.IntermediateBuild fails with `java.io.NotSerializableException: java.util.regex.Matcher`.Advanced