`No such property: env for class: groovy.lang.Binding` in a shared library.
AdvancedTroubleshootingJenkins Credentials, Plugins and Controller Issues
Answer
Likely causes → Accessing pipeline globals from a class in src/ without passing the script context.
Diagnose → Check where env is used.
Fix → Pass this (steps) into the class constructor and use steps.env, steps.sh.
Prevent → Keep step calls in vars/ and pure logic in src/.
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`Unable to create live FilePath for agent` / `java.io.IOException: Remote file system ... is not writable`.Intermediate