From: Thanh Ha Date: Mon, 16 Jul 2018 20:31:54 +0000 (-0400) Subject: Fix global-vars fail to instantiate instance X-Git-Tag: v0.22.1^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F11802%2F1;p=releng%2Fglobal-jjb.git 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 --- 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()