From 12b7a54471217475bc3ab9b763dca05deabd68bc Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 28 Jun 2016 06:59:31 -0400 Subject: [PATCH] [JENKINS-30412] Add some useful whitelists pertaining to ChangeLogSet. --- .../sandbox/whitelists/generic-whitelist | 1 + .../sandbox/whitelists/jenkins-whitelist | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist b/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist index 348a268cb..b1197403e 100644 --- a/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist +++ b/src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist @@ -32,6 +32,7 @@ method groovy.lang.Closure ncurry int java.lang.Object method groovy.lang.Closure ncurry int java.lang.Object[] method groovy.lang.Closure setDelegate java.lang.Object method groovy.lang.Closure setResolveStrategy int +method groovy.lang.GString plus java.lang.String method groovy.lang.Script getBinding # Needed for Groovy Templates to emit output: 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 a3ffdfd0e..7a6f4b8b7 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 @@ -5,5 +5,24 @@ staticMethod hudson.model.Environment create hudson.EnvVars method hudson.model.Item getParent method hudson.model.ModelObject getDisplayName method hudson.model.Run getFullDisplayName +method hudson.model.User getFullName +method hudson.model.User getId +method hudson.scm.ChangeLogSet getItems +method hudson.scm.ChangeLogSet getKind +method hudson.scm.ChangeLogSet isEmptySet +method hudson.scm.ChangeLogSet$AffectedFile getEditType +method hudson.scm.ChangeLogSet$AffectedFile getPath +method hudson.scm.ChangeLogSet$Entry getAffectedFiles +method hudson.scm.ChangeLogSet$Entry getAffectedPaths +method hudson.scm.ChangeLogSet$Entry getAuthor +method hudson.scm.ChangeLogSet$Entry getCommitId +method hudson.scm.ChangeLogSet$Entry getMsg +method hudson.scm.ChangeLogSet$Entry getMsgAnnotated +method hudson.scm.ChangeLogSet$Entry getMsgEscaped +method hudson.scm.ChangeLogSet$Entry getTimestamp +field hudson.scm.EditType ADD +field hudson.scm.EditType DELETE +field hudson.scm.EditType EDIT +method hudson.scm.EditType getName method hudson.tools.ToolInstallation getHome method hudson.tools.ToolInstallation getName