File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
main/java/org/jvnet/hudson/test
test/java/org/jvnet/hudson/test Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ THE SOFTWARE.
8383 <dependency >
8484 <groupId >org.jenkins-ci.main</groupId >
8585 <artifactId >jenkins-war</artifactId >
86- <!-- to have access to TypedFilter -->
87- <version >2.138.4 </version >
86+ <!-- to have access to User.getById -->
87+ <version >1.651.2 </version >
8888 <type >executable-war</type >
8989 <exclusions >
9090 <exclusion >
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ private Method findIsRoutableMethod() throws NoSuchMethodException {
171171 private PluginWrapper determineCurrentPlugin () {
172172 String plugin = (String ) params .get ("artifactId" );
173173 if (plugin != null ) {
174- return Jenkins .get ().pluginManager .getPlugin (plugin );
174+ return Jenkins .getActiveInstance ().pluginManager .getPlugin (plugin );
175175 }
176176 return null ;
177177 }
Original file line number Diff line number Diff line change 44import com .gargoylesoftware .htmlunit .WebRequest ;
55import hudson .model .User ;
66import jenkins .security .ApiTokenProperty ;
7- import jenkins .security .apitoken .ApiTokenPropertyConfiguration ;
87import net .sf .json .JSONObject ;
98import org .junit .Rule ;
109import org .junit .Test ;
@@ -82,7 +81,7 @@ public void assertEqualDataBoundBeansWithSettersFailForField() throws Exception
8281 @ Test
8382 public void testTokenHelperMethods () throws Exception {
8483 j .jenkins .setSecurityRealm (j .createDummySecurityRealm ());
85- ApiTokenPropertyConfiguration .get ().setTokenGenerationOnCreationEnabled (true );
84+ // Jenkins 2.129+: ApiTokenPropertyConfiguration.get().setTokenGenerationOnCreationEnabled(true);
8685
8786 JenkinsRule .WebClient wc = j .createWebClient ();
8887
You can’t perform that action at this time.
0 commit comments