From 3df80b164fa5ba4cf03c77e63e1c0dbbc40c83ad Mon Sep 17 00:00:00 2001 From: James Nord Date: Mon, 18 Dec 2023 17:47:45 +0000 Subject: [PATCH 1/2] whitelist jenkins.model.Jenkin.VERSION useful when you need the Jenkins version in a pipeline (e.g. to obtain a corresponing agent image for k8s plugin) --- .../plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist b/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist index 53a840351..a7b0399c8 100644 --- a/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist +++ b/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist @@ -36,3 +36,4 @@ method hudson.tools.ToolInstallation getHome method hudson.tools.ToolInstallation getName method jenkins.model.CauseOfInterruption getShortDescription method jenkins.model.CauseOfInterruption$UserInterruption getUserId +staticField jenkins.model.Jenkin VERSION From 234f740964d3047441aac702ff8280b51af3e6cf Mon Sep 17 00:00:00 2001 From: James Nord Date: Mon, 18 Dec 2023 17:49:09 +0000 Subject: [PATCH 2/2] correct typo in Jenkins classname --- .../plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist b/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist index a7b0399c8..5e8ce3fb0 100644 --- a/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist +++ b/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/jenkins-whitelist @@ -36,4 +36,4 @@ method hudson.tools.ToolInstallation getHome method hudson.tools.ToolInstallation getName method jenkins.model.CauseOfInterruption getShortDescription method jenkins.model.CauseOfInterruption$UserInterruption getUserId -staticField jenkins.model.Jenkin VERSION +staticField jenkins.model.Jenkins VERSION