Credentials binding fails: `Bad substitution` or `$PASSWORD: unbound variable`.
BeginnerTroubleshootingJenkins Credentials, Plugins and Controller Issues
Answer
Likely causes → Variable names mismatched between withCredentials and the script; wrong quote type; running sh using /bin/sh with Bash-only syntax.
Diagnose → Read the binding names and the script.
Fix → Align names, use single quotes, add #!/bin/bash where bash features are used.
Prevent → Standardise variable names in library steps.
More on Jenkins Credentials, Plugins and Controller Issues
`ERROR: Could not find credentials entry with ID 'docker-hub'`.BeginnerJenkins UI shows `HTTP ERROR 403 No valid crumb was included in the request`.BeginnerAfter upgrade, Jenkins shows `Jenkins failed to start` and logs `Failed Loading plugin ... Plugin is missing: ...`.AdvancedJenkins is extremely slow; the UI times out; thread dump shows many blocked threads.Advanced`java.lang.OutOfMemoryError: Java heap space` on the controller.Intermediate`No such property: env for class: groovy.lang.Binding` in a shared library.Advanced