aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_jenkins/setenv.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'tools/moon_jenkins/setenv.groovy')
-rw-r--r--tools/moon_jenkins/setenv.groovy34
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/moon_jenkins/setenv.groovy b/tools/moon_jenkins/setenv.groovy
deleted file mode 100644
index ab2dc137..00000000
--- a/tools/moon_jenkins/setenv.groovy
+++ /dev/null
@@ -1,34 +0,0 @@
-#!groovy
-
-import jenkins.*
-import jenkins.model.*
-import hudson.*
-import hudson.model.*
-
-instance = Jenkins.getInstance()
-globalNodeProperties = instance.getGlobalNodeProperties()
-
-envVarsNodePropertyList = globalNodeProperties.getAll(hudson.slaves.EnvironmentVariablesNodeProperty.class)
-
-newEnvVarsNodeProperty = null
-envVars = null
-
-if (envVarsNodePropertyList == null || envVarsNodePropertyList.size() == 0) {
- newEnvVarsNodeProperty = new hudson.slaves.EnvironmentVariablesNodeProperty();
- globalNodeProperties.add(newEnvVarsNodeProperty)
- envVars = newEnvVarsNodeProperty.getEnvVars()
-} else {
- envVars = envVarsNodePropertyList.get(0).getEnvVars()
-}
-
-http_proxy = System.getenv()['http_proxy']
-https_proxy = System.getenv()['https_proxy']
-
-if (http_proxy) {
- envVars.put("http_proxy", System.getenv()['http_proxy'])
-}
-if (https_proxy) {
- envVars.put("https_proxy", System.getenv()['https_proxy'])
-}
-
-instance.save()