diff options
author | RHE <rebirthmonkey@gmail.com> | 2018-01-17 14:35:01 +0100 |
---|---|---|
committer | RHE <rebirthmonkey@gmail.com> | 2018-01-17 14:35:01 +0100 |
commit | e475b83c1f711e77814d68f933ff2d661102806a (patch) | |
tree | 76a710b94a3c16a6b8dd55c84070683ac3008828 /tools/moon_jenkins/setenv.groovy | |
parent | 920c9eb45f976b264b3d66c5e6cef80b1354a825 (diff) |
jenkins conf
Change-Id: Ide859a78b8b4f05008106d9aca8f84eaeb0f538b
Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'tools/moon_jenkins/setenv.groovy')
-rw-r--r-- | tools/moon_jenkins/setenv.groovy | 34 |
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() |