Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' [JENKINS-29545]
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jul 21, 2015
2 parents 99a4b1c + 89ea91d commit a69e3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -93,7 +93,7 @@
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ws-cleanup</artifactId>
<version>0.26</version>
<optional>true</optional>
<scope>test</scope>
</dependency>

<dependency>
Expand Down
Expand Up @@ -21,9 +21,8 @@ public CleanupWorkspaceChecker() {

public boolean executeCheck(Item item) {
if (Jenkins.getInstance().pluginManager.getPlugin("ws-cleanup")!=null) {
return item instanceof Project && ((Project) item).getPublisher(Descriptor.find(hudson.plugins.ws_cleanup.WsCleanup.DescriptorImpl.class.getName())) == null;
return item instanceof Project && ((Project) item).getPublisher(Descriptor.find("hudson.plugins.ws_cleanup.WsCleanup")) == null;
} else {
// If ws-cleanup hasn't been installed yet
return true;
}
}
Expand Down

0 comments on commit a69e3fc

Please sign in to comment.