Refactor Jenkins User Defined Global Properties

If you’ve been running a Jenkins instance for more than a few months, chances are the Manage Jenkins > System > Global Properties > Environment Variables section has quietly accumulated a small graveyard of key-value pairs. Someone added NEXUS_TOKEN during a migration in 2022. Someone else pasted a DB_PASSWORD “just for testing” that never got removed. A few PATH overrides exist for reasons nobody remembers. None of this is visible unless you scroll through the UI manually — and manual scrolling doesn’t scale, doesn’t get version-controlled, and definitely doesn’t produce an audit trail. If you’re doing a security review, a…








