-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: optimizing retrieval of jobs when using token to auth
- Loading branch information
1 parent
026c2c8
commit 53825a1
Showing
4 changed files
with
106 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Logging | ||
handlers = java.util.logging.ConsoleHandler | ||
org.jenkinsci.plugins.gwt.level = FINE | ||
org.jenkinsci.plugins.gwt.level = FINEST | ||
|
||
# Console Logging | ||
java.util.logging.ConsoleHandler.level = FINE | ||
java.util.logging.ConsoleHandler.level = FINEST |
21 changes: 21 additions & 0 deletions
21
src/main/java/org/jenkinsci/plugins/gwt/jobfinder/GenericTriggerFinder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.jenkinsci.plugins.gwt.jobfinder; | ||
|
||
import hudson.triggers.Trigger; | ||
import hudson.triggers.TriggerDescriptor; | ||
import java.util.Map; | ||
import org.jenkinsci.plugins.gwt.GenericTrigger; | ||
|
||
public class GenericTriggerFinder { | ||
public static GenericTrigger findGenericTrigger( | ||
final Map<TriggerDescriptor, Trigger<?>> triggers) { | ||
if (triggers == null) { | ||
return null; | ||
} | ||
for (final Trigger<?> candidate : triggers.values()) { | ||
if (candidate instanceof GenericTrigger) { | ||
return (GenericTrigger) candidate; | ||
} | ||
} | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters