Skip to content

Commit

Permalink
[JENKINS-28150] Fix optional dependency loading
Browse files Browse the repository at this point in the history
The extensions here that are using an optional dependency's class must
be mark as optional. If not, we can see `ClassNotFoundException` when
Jenkins load this plugin.
  • Loading branch information
alecharp committed Apr 29, 2015
1 parent 3804c3b commit 905dccb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -68,7 +68,7 @@ public Descriptor<ConditionalTimeout> getDescriptor() {
return DESCRIPTOR;
}

@Extension
@Extension(optional = true)
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();

public static class DescriptorImpl extends Descriptor<ConditionalTimeout> {
Expand Down
Expand Up @@ -89,7 +89,7 @@ public Descriptor<BuildTimeOutStrategy> getDescriptor() {
return DESCRIPTOR;
}

@Extension
@Extension(optional = true)
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();

public static class DescriptorImpl extends BuildTimeOutStrategyDescriptor {
Expand Down
Expand Up @@ -76,7 +76,7 @@ public RunCondition getCondition() {
return condition;
}

@Extension
@Extension(optional = true)
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();

@Override
Expand Down

0 comments on commit 905dccb

Please sign in to comment.