Skip to content

Commit

Permalink
Avoid showing trigger for unsupported projects #6
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed May 9, 2017
1 parent cbf75eb commit fd6d4e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Generic Webhook Plugin Changelog
Changelog of Generic Webhook Plugin.
## Unreleased
### GitHub [#6](https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/6) After auth still can't trigger things
**Avoid showing trigger for unsupported projects #6**

[d5603bef3d182fa](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/d5603bef3d182fa) Tomas Bjerre *2017-05-09 19:26:10*

### No issue
**doc**

[190bc60b1e6f5e8](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/190bc60b1e6f5e8) Tomas Bjerre *2017-05-02 19:00:19*
[cbf75eb9d75192a](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/cbf75eb9d75192a) Tomas Bjerre *2017-05-03 19:31:19*

## 1.9
### GitHub [#4](https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/4) Did not find any jobs to trigger!
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/jenkinsci/plugins/gwt/GenericTrigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.google.common.annotations.VisibleForTesting;

import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.CauseAction;
import hudson.model.Item;
import hudson.model.Job;
Expand All @@ -38,7 +37,7 @@ public static class GenericDescriptor extends TriggerDescriptor {

@Override
public boolean isApplicable(Item item) {
return true;
return Job.class.isAssignableFrom(item.getClass());
}

@Override
Expand Down

0 comments on commit fd6d4e6

Please sign in to comment.