Skip to content

Commit 67dc1f0

Browse files
authored
Fix JenkinsWhitelistTest on 2.477 incremental (#578)
* Test with Jenkins 2.477-rc35350.7ff5a_a_a_0fdc3 incremental The JenkinsWhitelistTest will fail because method hudson.model.Run getFullDisplayName does not exist (or is an override) Show the test failure on ci.jenkins.io, * Exclude hudson.model.Run.getFullDisplayName from sanity test An override in Jenkins 2.477 * Revert "Test with Jenkins 2.477-rc35350.7ff5a_a_a_0fdc3 incremental" This reverts commit 9f3bad4.
1 parent 9131007 commit 67dc1f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ static void sanity(URL definition) throws Exception {
156156
new MethodSignature(MatchResult.class, "hasMatch"),
157157
new MethodSignature(MatchResult.class, "namedGroups"),
158158
new MethodSignature(MatchResult.class, "start", String.class),
159+
// TODO No longer exists after Jenkins includes https://github.com/jenkinsci/jenkins/pull/9674
160+
// Remove once plugin depends on Jenkins 2.477 or newer
161+
// Remove from jenkins-whitelist at the same time
162+
new MethodSignature("hudson.model.Run", "getFullDisplayName"),
159163
// TODO Do not exist until Jenkins includes https://github.com/jenkinsci/jenkins/pull/9674
160164
new MethodSignature("jenkins.model.HistoricalBuild", "getFullDisplayName")
161165
));

0 commit comments

Comments
 (0)