From b12683ae347ea85c05226454d85456bf5405dc25 Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Wed, 28 Aug 2024 13:03:15 +0200 Subject: [PATCH] Fix soft dep to new core --- .../sandbox/whitelists/StaticWhitelistTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java b/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java index ab035ac9..d2398d11 100644 --- a/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java +++ b/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java @@ -155,7 +155,9 @@ static void sanity(URL definition) throws Exception { new MethodSignature(MatchResult.class, "group", String.class), new MethodSignature(MatchResult.class, "hasMatch"), new MethodSignature(MatchResult.class, "namedGroups"), - new MethodSignature(MatchResult.class, "start", String.class) + new MethodSignature(MatchResult.class, "start", String.class), + // TODO Do not exist until Jenkins includes https://github.com/jenkinsci/jenkins/pull/9674 + new MethodSignature("jenkins.model.HistoricalBuild", "getFullDisplayName") )); @Test public void sanity() throws Exception {