Skip to content

Instantly share code, notes, and snippets.

@kinow
Created March 9, 2012 20:01
Show Gist options
  • Save kinow/2008358 to your computer and use it in GitHub Desktop.
Save kinow/2008358 to your computer and use it in GitHub Desktop.
name="localhost";
port = 9898;
userName="root";
password ="password";
noProxyHost="localhost, nostradamus";
pc = new hudson.ProxyConfiguration(name, port, userName, password, noProxyHost);
jenkins.model.Jenkins.instance.proxy = pc;
println "Proxy settings updated!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment