Fix global-vars fail to instantiate instance 02/11802/1 v0.22.1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Jul 2018 20:31:54 +0000 (16:31 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Jul 2018 20:31:56 +0000 (16:31 -0400)
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 <thanh.ha@linuxfoundation.org>
jenkins-admin/set_global_properties.groovy

index 83008a2..581f2aa 100644 (file)
@@ -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()