How do I override http_proxy environment variable in Jenkins?
Maybe try setting the variable in the jenkins settings page (override the default), or in the job (as a parameter). Both options will override any existing value on the system. Is this what you need?