Skip to content

Commit

Permalink
Lower core dependency again
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed May 26, 2019
1 parent 99767ef commit cb1e719
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-war</artifactId>
<!--to have access to TypedFilter -->
<version>2.138.4</version>
<!--to have access to User.getById -->
<version>1.651.2</version>
<type>executable-war</type>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private Method findIsRoutableMethod() throws NoSuchMethodException {
private PluginWrapper determineCurrentPlugin() {
String plugin = (String) params.get("artifactId");
if (plugin != null) {
return Jenkins.get().pluginManager.getPlugin(plugin);
return Jenkins.getActiveInstance().pluginManager.getPlugin(plugin);
}
return null;
}
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/jvnet/hudson/test/JenkinsRuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.gargoylesoftware.htmlunit.WebRequest;
import hudson.model.User;
import jenkins.security.ApiTokenProperty;
import jenkins.security.apitoken.ApiTokenPropertyConfiguration;
import net.sf.json.JSONObject;
import org.junit.Rule;
import org.junit.Test;
Expand Down Expand Up @@ -82,7 +81,7 @@ public void assertEqualDataBoundBeansWithSettersFailForField() throws Exception
@Test
public void testTokenHelperMethods() throws Exception {
j.jenkins.setSecurityRealm(j.createDummySecurityRealm());
ApiTokenPropertyConfiguration.get().setTokenGenerationOnCreationEnabled(true);
// Jenkins 2.129+: ApiTokenPropertyConfiguration.get().setTokenGenerationOnCreationEnabled(true);

JenkinsRule.WebClient wc = j.createWebClient();

Expand Down

0 comments on commit cb1e719

Please sign in to comment.