From d5cdafeb1d290e224aa7f2a8e478b08be9435f41 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 13 May 2022 16:15:02 -0700 Subject: [PATCH] [JENKINS-55582] Split instance-identity to a plugin --- bom/pom.xml | 5 ----- .../main/resources/jenkins/split-plugin-cycles.txt | 6 ++++++ core/src/main/resources/jenkins/split-plugins.txt | 3 +++ docs/MAINTAINERS.adoc | 1 - test/pom.xml | 6 ++++++ .../java/jenkins/security/ClassFilterImplTest.java | 9 --------- war/pom.xml | 12 +++++++----- 7 files changed, 22 insertions(+), 20 deletions(-) diff --git a/bom/pom.xml b/bom/pom.xml index a506415e2f15..f538814b299b 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -256,11 +256,6 @@ THE SOFTWARE. remoting ${remoting.version} - - org.jenkins-ci.modules - instance-identity - 2.2 - org.jfree jfreechart diff --git a/core/src/main/resources/jenkins/split-plugin-cycles.txt b/core/src/main/resources/jenkins/split-plugin-cycles.txt index 848ede384feb..5fbea9ed30f2 100644 --- a/core/src/main/resources/jenkins/split-plugin-cycles.txt +++ b/core/src/main/resources/jenkins/split-plugin-cycles.txt @@ -36,3 +36,9 @@ jdk-tool jaxb javax-activation-api javax-mail-api javax-activation-api sshd javax-mail-api sshd + +# JENKINS-55582 +bouncycastle-api instance-identity +bouncycastle-api sshd +javax-activation-api instance-identity +javax-mail-api instance-identity diff --git a/core/src/main/resources/jenkins/split-plugins.txt b/core/src/main/resources/jenkins/split-plugins.txt index 95aac78d69a5..c273ff3dd191 100644 --- a/core/src/main/resources/jenkins/split-plugins.txt +++ b/core/src/main/resources/jenkins/split-plugins.txt @@ -37,3 +37,6 @@ sshd 2.281 3.0.1 javax-activation-api 2.330 1.2.0-2 javax-mail-api 2.330 1.6.2-5 + +# JENKINS-55582 +instance-identity 2.347 3.0.1 diff --git a/docs/MAINTAINERS.adoc b/docs/MAINTAINERS.adoc index 7545bcec8a2d..7350ec72a6e3 100644 --- a/docs/MAINTAINERS.adoc +++ b/docs/MAINTAINERS.adoc @@ -14,7 +14,6 @@ and hence the Jenkins core pull request review and merge process is more sophist This document applies to the following components: * Jenkins core -* Jenkins modules * Libraries included into the Jenkins core * Core components like Winstone, Executable WAR, etc. diff --git a/test/pom.xml b/test/pom.xml index 03fc7ecda4f9..4a4524f715f5 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -136,6 +136,12 @@ THE SOFTWARE. test-annotations test + + org.jenkins-ci.modules + instance-identity + 3.0.1 + test + org.jenkins-ci.plugins antisamy-markup-formatter diff --git a/test/src/test/java/jenkins/security/ClassFilterImplTest.java b/test/src/test/java/jenkins/security/ClassFilterImplTest.java index 2b689b9c6f59..123a8c3b4fe8 100644 --- a/test/src/test/java/jenkins/security/ClassFilterImplTest.java +++ b/test/src/test/java/jenkins/security/ClassFilterImplTest.java @@ -58,7 +58,6 @@ import org.junit.Rule; import org.junit.Test; import org.jvnet.hudson.test.BuildWatcher; -import org.jvnet.hudson.test.Issue; import org.jvnet.hudson.test.JenkinsRule; import org.jvnet.hudson.test.LoggerRule; import org.jvnet.hudson.test.TestExtension; @@ -165,14 +164,6 @@ public void xstreamRequiresWhitelist() throws Exception { assertThat(data.values().iterator().next().extra, allOf(containsString("LinkedListMultimap"), containsString("https://www.jenkins.io/redirect/class-filter/"))); } - @Test - @Issue("JENKINS-49543") - public void moduleClassesShouldBeWhitelisted() { - ClassFilterImpl filter = new ClassFilterImpl(); - filter.check("org.jenkinsci.modules.windows_slave_installer.WindowsSlaveInstaller"); - filter.check("org.jenkinsci.main.modules.instance_identity.PageDecoratorImpl"); - } - @TestExtension("xstreamRequiresWhitelist") public static class Config extends GlobalConfiguration { LinkedListMultimap obj; diff --git a/war/pom.xml b/war/pom.xml index 33247ac395ba..a74230f9e9c1 100644 --- a/war/pom.xml +++ b/war/pom.xml @@ -96,10 +96,6 @@ THE SOFTWARE. - - org.jenkins-ci.modules - instance-identity -