Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jul 21, 2017
1 parent fe77225 commit fec2f6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Generic Webhook Plugin Changelog
Changelog of Generic Webhook Plugin.
## Unreleased
## 1.15 (2017-07-21 12:38:27)
### No issue

**doc**


[b66b53ee30e4636](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/b66b53ee30e4636) Tomas Bjerre *2017-07-21 12:33:28*
[8ac068c484022d7](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/8ac068c484022d7) Tomas Bjerre *2017-07-21 12:33:57*

**Add impersonalization to execute Webhook as anonymous user using only Authentication Token**

Expand Down
14 changes: 7 additions & 7 deletions src/main/java/org/jenkinsci/plugins/gwt/JobFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static List<GenericTrigger> findAllJobsWithTrigger(String queryStringToke
// Try search again the job with the authentication context
// of the user to make sure it only can find it if
// authenticated
Job<?, ?> j= Jenkins.getInstance().getItemByFullName(candidateJob.getName(), Job.class);
Job<?, ?> j = Jenkins.getInstance().getItemByFullName(candidateJob.getName(), Job.class);
if (j == null) {
continue;
}
Expand All @@ -64,13 +64,13 @@ public static List<GenericTrigger> findAllJobsWithTrigger(String queryStringToke

private static GenericTrigger findGenericTrigger(Map<TriggerDescriptor, Trigger<?>> triggers) {
if (triggers == null) {
return null;
}
return null;
}
for (Trigger<?> candidate : triggers.values()) {
if (candidate instanceof GenericTrigger) {
return (GenericTrigger) candidate;
}
}
if (candidate instanceof GenericTrigger) {
return (GenericTrigger) candidate;
}
}
return null;
}
}

0 comments on commit fec2f6e

Please sign in to comment.