You can add this new variable to the existing EnvVars object. See http://javadoc.jenkins-ci.org/hudson/EnvVars.html#EnvVars%28java.lang.String...%29