From 5ca1149a99351cc571d21b315e4acecae6b109b5 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 16 Jul 2018 16:31:54 -0400 Subject: [PATCH] Fix global-vars fail to instantiate instance Not sure why this is suddenly a problem. Jenkins was not upgraded as far as I am aware but adding Jenkins. seems to resolve the issue we suddenly started seeing. Change-Id: I76b7e01c7f1d377e7c4b63d5adde1b4fc29c6933 Signed-off-by: Thanh Ha --- jenkins-admin/set_global_properties.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins-admin/set_global_properties.groovy b/jenkins-admin/set_global_properties.groovy index 83008a28..581f2aad 100644 --- a/jenkins-admin/set_global_properties.groovy +++ b/jenkins-admin/set_global_properties.groovy @@ -26,4 +26,4 @@ env_vars = properties.getEnvVars() env_vars.clear() global_vars.each{ k, v -> env_vars.put(k, v) } -instance.save() +Jenkins.instance.save() -- 2.16.6