Adding environment variable via configure global settings fails with exception

One or more of the plugins installed on your Jenkins controller have not been updated for the configuration form modernization that was implemented in Jenkins 2.277.1.

Detailed steps to help you identify the plugin(s) with the problem are available in another Jenkins community forum post.